Diffstat (limited to 'libopie2/opiepim/ocontactfields.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/ocontactfields.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/libopie2/opiepim/ocontactfields.h b/libopie2/opiepim/ocontactfields.h index 993ce3b..9e89532 100644 --- a/libopie2/opiepim/ocontactfields.h +++ b/libopie2/opiepim/ocontactfields.h @@ -28,4 +28,5 @@ */ -#ifndef OPIE_CONTACTS_FIELDS -#define OPIE_CONTACTS_FIELDS + +#ifndef OCONTACTFIELDS_H +#define OCONTACTFIELDS_H @@ -33,5 +34,8 @@ class QStringList; +/* OPIE */ +#include <opie2/ocontact.h> + +/* QT */ #include <qmap.h> #include <qstring.h> -#include <opie2/ocontact.h> @@ -39,7 +43,9 @@ class QStringList; #define DEFAULT_FIELD_ORDER "__________" - -namespace Opie { -class OContactFields{ - public: +namespace Opie +{ +class OContactFields +{ + + public: OContactFields(); @@ -57,7 +63,7 @@ class OContactFields{ * @param num Selects the number of the combo - * @param defIndex will be returned if none was defined (either - * globally in the config file, nor by the contact which was used + * @param defIndex will be returned if none was defined (either + * globally in the config file, nor by the contact which was used * by loadFromRecord() ) */ - int getFieldOrder( int num, int defIndex); + int getFieldOrder( int num, int defIndex ); @@ -68,3 +74,3 @@ class OContactFields{ - private: + private: QString fieldOrder; @@ -73,3 +79,3 @@ class OContactFields{ - public: + public: static QStringList personalfields( bool sorted = true, bool translated = false ); @@ -78,3 +84,3 @@ class OContactFields{ static QStringList fields( bool sorted = true, bool translated = false ); - + static QStringList trpersonalfields( bool sorted = true ); |