From ab8d331905b59a86b50cd513123cdde67e4bfb8a Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 15 Nov 2002 11:37:20 +0000 Subject: Add proposal header for Cross Referencing.. look at them and comment --- (limited to 'libopie2/opiepim/core/opimxrefpartner.h') diff --git a/libopie2/opiepim/core/opimxrefpartner.h b/libopie2/opiepim/core/opimxrefpartner.h new file mode 100644 index 0000000..808b9ab --- a/dev/null +++ b/libopie2/opiepim/core/opimxrefpartner.h @@ -0,0 +1,40 @@ +#ifndef OPIM_XREF_PARTNER_H +#define OPIM_XREF_PARTNER_H + +#include + +/** + * This class represents one partner + * of a Cross Reference. + * In Opie one application + * can link one uid + * with one tableId( fieldId ) to another. + */ +class OPimXRefPartner { +public: + OPimXRefPartner( const QString& appName = QString::null, + int uid = 0, int field = -1 ); + OPimXRefPartner( const OPimXRefPartner& ); + OPimXRefPartner& operator=( const OPimXRefPartner& ); + ~OPimXRefPartner(); + + bool operator==(const OPimXRefPartner& ); + + QString appName()const; + int uid()const; + int field()const; + + void setAppName( const QString& appName ); + void setUid( int uid ); + void setField( int field ); +private: + QString m_app; + int m_uid; + int m_field; + + class Private; + Private* d; +}; + + +#endif -- cgit v0.9.0.2