opimxref.h
Go to the documentation of this file.00001 #ifndef OPIM_XREF_H 00002 #define OPIM_XREF_H 00003 00004 #include <qarray.h> 00005 #include <qvaluelist.h> 00006 00007 #include <opie/opimxrefpartner.h> 00008 00013 class OPimXRef { 00014 public: 00015 typedef QValueList<OPimXRef> ValueList; 00016 enum Partners { One, Two }; 00017 OPimXRef( const OPimXRefPartner& ONE, const OPimXRefPartner& ); 00018 OPimXRef(); 00019 OPimXRef( const OPimXRef& ); 00020 ~OPimXRef(); 00021 00022 OPimXRef &operator=( const OPimXRef& ); 00023 bool operator==( const OPimXRef& ); 00024 00025 OPimXRefPartner partner( enum Partners )const; 00026 00027 void setPartner( enum Partners, const OPimXRefPartner& ); 00028 00029 bool containsString( const QString& service)const; 00030 bool containsUid( int uid )const; 00031 00032 private: 00033 QArray<OPimXRefPartner> m_partners; 00034 00035 class Private; 00036 Private *d; 00037 }; 00038 00039 #endif
