Diffstat (limited to 'libopie2/opiepim/core/opimxrefpartner.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimxrefpartner.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libopie2/opiepim/core/opimxrefpartner.h b/libopie2/opiepim/core/opimxrefpartner.h index 6853d5b..005dbc0 100644 --- a/libopie2/opiepim/core/opimxrefpartner.h +++ b/libopie2/opiepim/core/opimxrefpartner.h | |||
@@ -20,51 +20,54 @@ | |||
20 | ++= -. .` .: details. | 20 | ++= -. .` .: details. |
21 | : = ...= . :.=- | 21 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = Library General Public License along with | 23 | -_. . . )=. = Library General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | #ifndef OPIM_XREF_PARTNER_H | 29 | #ifndef OPIM_XREF_PARTNER_H |
30 | #define OPIM_XREF_PARTNER_H | 30 | #define OPIM_XREF_PARTNER_H |
31 | 31 | ||
32 | /* QT */ | ||
32 | #include <qstring.h> | 33 | #include <qstring.h> |
33 | 34 | ||
34 | namespace Opie { | 35 | namespace Opie { |
35 | /** | 36 | /** |
36 | * This class represents one partner | 37 | * This class represents one partner |
37 | * of a Cross Reference. | 38 | * of a Cross Reference. |
38 | * In Opie one application | 39 | * In Opie one application |
39 | * can link one uid | 40 | * can link one uid |
40 | * with one tableId( fieldId ) to another. | 41 | * with one tableId( fieldId ) to another. |
41 | */ | 42 | */ |
42 | class OPimXRefPartner { | 43 | class OPimXRefPartner { |
44 | |||
43 | public: | 45 | public: |
44 | OPimXRefPartner( const QString& service = QString::null, | 46 | OPimXRefPartner( const QString& service = QString::null, |
45 | int uid = 0, int field = -1 ); | 47 | int uid = 0, int field = -1 ); |
46 | OPimXRefPartner( const OPimXRefPartner& ); | 48 | OPimXRefPartner( const OPimXRefPartner& ); |
47 | OPimXRefPartner& operator=( const OPimXRefPartner& ); | 49 | OPimXRefPartner& operator=( const OPimXRefPartner& ); |
48 | ~OPimXRefPartner(); | 50 | ~OPimXRefPartner(); |
49 | 51 | ||
50 | bool operator==(const OPimXRefPartner& ); | 52 | bool operator==(const OPimXRefPartner& ); |
51 | 53 | ||
52 | QString service()const; | 54 | QString service()const; |
53 | int uid()const; | 55 | int uid()const; |
54 | int field()const; | 56 | int field()const; |
55 | 57 | ||
56 | void setService( const QString& service ); | 58 | void setService( const QString& service ); |
57 | void setUid( int uid ); | 59 | void setUid( int uid ); |
58 | void setField( int field ); | 60 | void setField( int field ); |
61 | |||
59 | private: | 62 | private: |
60 | QString m_app; | 63 | QString m_app; |
61 | int m_uid; | 64 | int m_uid; |
62 | int m_field; | 65 | int m_field; |
63 | 66 | ||
64 | class Private; | 67 | class Private; |
65 | Private* d; | 68 | Private* d; |
66 | }; | 69 | }; |
67 | 70 | ||
68 | } | 71 | } |
69 | 72 | ||
70 | #endif | 73 | #endif |