summaryrefslogtreecommitdiffstats
path: root/kresources/kolab/kabc/contact.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kresources/kolab/kabc/contact.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/kolab/kabc/contact.h')
-rw-r--r--kresources/kolab/kabc/contact.h300
1 files changed, 150 insertions, 150 deletions
diff --git a/kresources/kolab/kabc/contact.h b/kresources/kolab/kabc/contact.h
index 0c06dfb8a..39a235cc2 100644
--- a/kresources/kolab/kabc/contact.h
+++ b/kresources/kolab/kabc/contact.h
@@ -34,7 +34,7 @@
#define KOLABCONTACT_H
#include <kolabbase.h>
-#include <qimage.h>
+#include <tqimage.h>
namespace KABC {
class Addressee;
@@ -49,8 +49,8 @@ class Contact : public KolabBase {
public:
struct PhoneNumber {
public:
- QString type;
- QString number;
+ TQString type;
+ TQString number;
};
struct Address {
@@ -59,126 +59,126 @@ public:
{
}
int kdeAddressType; // KABC::Address::Type
- QString type; // kolab-compliant address type: home, work or other
- QString street;
- QString pobox;
- QString locality;
- QString region;
- QString postalCode;
- QString country;
+ TQString type; // kolab-compliant address type: home, work or other
+ TQString street;
+ TQString pobox;
+ TQString locality;
+ TQString region;
+ TQString postalCode;
+ TQString country;
};
explicit Contact( const KABC::Addressee* address );
- Contact( const QString& xml, KABC::ResourceKolab* resource, const QString& subResource, Q_UINT32 sernum );
+ Contact( const TQString& xml, KABC::ResourceKolab* resource, const TQString& subResource, Q_UINT32 sernum );
~Contact();
void saveTo( KABC::Addressee* address );
- QString type() const { return "Contact"; }
+ TQString type() const { return "Contact"; }
- void setGivenName( const QString& name );
- QString givenName() const;
+ void setGivenName( const TQString& name );
+ TQString givenName() const;
- void setMiddleNames( const QString& names );
- QString middleNames() const;
+ void setMiddleNames( const TQString& names );
+ TQString middleNames() const;
- void setLastName( const QString& name );
- QString lastName() const;
+ void setLastName( const TQString& name );
+ TQString lastName() const;
- void setFullName( const QString& name );
- QString fullName() const;
+ void setFullName( const TQString& name );
+ TQString fullName() const;
- void setInitials( const QString& initials );
- QString initials() const;
+ void setInitials( const TQString& initials );
+ TQString initials() const;
- void setPrefix( const QString& prefix );
- QString prefix() const;
+ void setPrefix( const TQString& prefix );
+ TQString prefix() const;
- void setSuffix( const QString& suffix );
- QString suffix() const;
+ void setSuffix( const TQString& suffix );
+ TQString suffix() const;
- void setRole( const QString& role );
- QString role() const;
+ void setRole( const TQString& role );
+ TQString role() const;
- void setFreeBusyUrl( const QString& fbUrl );
- QString freeBusyUrl() const;
+ void setFreeBusyUrl( const TQString& fbUrl );
+ TQString freeBusyUrl() const;
- void setOrganization( const QString& organization );
- QString organization() const;
+ void setOrganization( const TQString& organization );
+ TQString organization() const;
- void setWebPage( const QString& url );
- QString webPage() const;
+ void setWebPage( const TQString& url );
+ TQString webPage() const;
- void setIMAddress( const QString& imAddress );
- QString imAddress() const;
+ void setIMAddress( const TQString& imAddress );
+ TQString imAddress() const;
- void setDepartment( const QString& department );
- QString department() const;
+ void setDepartment( const TQString& department );
+ TQString department() const;
- void setOfficeLocation( const QString& location );
- QString officeLocation() const;
+ void setOfficeLocation( const TQString& location );
+ TQString officeLocation() const;
- void setProfession( const QString& profession );
- QString profession() const;
+ void setProfession( const TQString& profession );
+ TQString profession() const;
// not shown in the kaddressbook GUI
- //void setJobTitle( const QString& title );
- //QString jobTitle() const;
+ //void setJobTitle( const TQString& title );
+ //TQString jobTitle() const;
- void setManagerName( const QString& name );
- QString managerName() const;
+ void setManagerName( const TQString& name );
+ TQString managerName() const;
- void setAssistant( const QString& name );
- QString assistant() const;
+ void setAssistant( const TQString& name );
+ TQString assistant() const;
- void setNickName( const QString& name );
- QString nickName() const;
+ void setNickName( const TQString& name );
+ TQString nickName() const;
- void setSpouseName( const QString& name );
- QString spouseName() const;
+ void setSpouseName( const TQString& name );
+ TQString spouseName() const;
- void setBirthday( const QDate& date );
- QDate birthday() const;
+ void setBirthday( const TQDate& date );
+ TQDate birthday() const;
- void setAnniversary( const QDate& date );
- QDate anniversary() const;
+ void setAnniversary( const TQDate& date );
+ TQDate anniversary() const;
- void setPicture( const QImage& image) { mPicture = image; }
- QString pictureAttachmentName() const { return mPictureAttachmentName; }
- QImage picture() const { return mPicture; }
+ void setPicture( const TQImage& image) { mPicture = image; }
+ TQString pictureAttachmentName() const { return mPictureAttachmentName; }
+ TQImage picture() const { return mPicture; }
- void setLogo( const QImage& image ) { mLogo = image; }
- QString logoAttachmentName() const { return mLogoAttachmentName; }
- QImage logo() const { return mLogo; }
+ void setLogo( const TQImage& image ) { mLogo = image; }
+ TQString logoAttachmentName() const { return mLogoAttachmentName; }
+ TQImage logo() const { return mLogo; }
- void setSound( const QByteArray& sound ) { mSound = sound; }
- QString soundAttachmentName() const { return mSoundAttachmentName; }
- QByteArray sound() const { return mSound; }
+ void setSound( const TQByteArray& sound ) { mSound = sound; }
+ TQString soundAttachmentName() const { return mSoundAttachmentName; }
+ TQByteArray sound() const { return mSound; }
- void setChildren( const QString& children );
- QString children() const;
+ void setChildren( const TQString& children );
+ TQString children() const;
- void setGender( const QString& gender );
- QString gender() const;
+ void setGender( const TQString& gender );
+ TQString gender() const;
- void setLanguage( const QString& language );
- QString language() const;
+ void setLanguage( const TQString& language );
+ TQString language() const;
void addPhoneNumber( const PhoneNumber& number );
- QValueList<PhoneNumber>& phoneNumbers();
- const QValueList<PhoneNumber>& phoneNumbers() const;
+ TQValueList<PhoneNumber>& phoneNumbers();
+ const TQValueList<PhoneNumber>& phoneNumbers() const;
void addEmail( const Email& email );
- QValueList<Email>& emails();
- const QValueList<Email>& emails() const;
+ TQValueList<Email>& emails();
+ const TQValueList<Email>& emails() const;
void addAddress( const Address& address );
- QValueList<Address>& addresses();
- const QValueList<Address>& addresses() const;
+ TQValueList<Address>& addresses();
+ const TQValueList<Address>& addresses() const;
// which address is preferred: home or business or other
- void setPreferredAddress( const QString& address );
- QString preferredAddress() const;
+ void setPreferredAddress( const TQString& address );
+ TQString preferredAddress() const;
float latitude() const { return mLatitude; }
void setLatitude( float latitude ) { mLatitude = latitude; }
@@ -187,16 +187,16 @@ public:
void setLongitude( float longitude ) { mLongitude = longitude; }
// Load the attributes of this class
- bool loadAttribute( QDomElement& );
+ bool loadAttribute( TQDomElement& );
// Save the attributes of this class
- bool saveAttributes( QDomElement& ) const;
+ bool saveAttributes( TQDomElement& ) const;
// Load this note by reading the XML file
- bool loadXML( const QDomDocument& xml );
+ bool loadXML( const TQDomDocument& xml );
// Serialize this note to an XML string
- QString saveXML() const;
+ TQString saveXML() const;
// Return true if this contact is a distr list
bool isDistributionList() const { return mIsDistributionList; }
@@ -205,81 +205,81 @@ protected:
void setFields( const KABC::Addressee* );
private:
- bool loadNameAttribute( QDomElement& element );
- void saveNameAttribute( QDomElement& element ) const;
-
- bool loadPhoneAttribute( QDomElement& element );
- void savePhoneAttributes( QDomElement& element ) const;
-
- void saveEmailAttributes( QDomElement& element ) const;
-
- bool loadAddressAttribute( QDomElement& element );
- void saveAddressAttributes( QDomElement& element ) const;
-
- void loadCustomAttributes( QDomElement& element );
- void saveCustomAttributes( QDomElement& element ) const;
-
- void loadDistrListMember( const QDomElement& element );
- void saveDistrListMembers( QDomElement& element ) const;
-
- QImage loadPictureFromKMail( const QString& attachmentName, KABC::ResourceKolab* resource, const QString& subResource, Q_UINT32 sernum );
- QImage loadPictureFromAddressee( const KABC::Picture& picture );
-
- QByteArray loadDataFromKMail( const QString& attachmentName, KABC::ResourceKolab* resource, const QString& subResource, Q_UINT32 sernum );
- QByteArray loadSoundFromAddressee( const KABC::Sound& sound );
-
- QString productID() const;
-
- QString mGivenName;
- QString mMiddleNames;
- QString mLastName;
- QString mFullName;
- QString mInitials;
- QString mPrefix;
- QString mSuffix;
- QString mRole;
- QString mFreeBusyUrl;
- QString mOrganization;
- QString mWebPage;
- QString mIMAddress;
- QString mDepartment;
- QString mOfficeLocation;
- QString mProfession;
- //QString mJobTitle;
- QString mManagerName;
- QString mAssistant;
- QString mNickName;
- QString mSpouseName;
- QDate mBirthday;
- QDate mAnniversary;
- QImage mPicture;
- QImage mLogo;
- QByteArray mSound;
- QString mPictureAttachmentName;
- QString mLogoAttachmentName;
- QString mSoundAttachmentName;
- QString mChildren;
- QString mGender;
- QString mLanguage;
- QValueList<PhoneNumber> mPhoneNumbers;
- QValueList<Email> mEmails;
- QValueList<Address> mAddresses;
- QString mPreferredAddress;
+ bool loadNameAttribute( TQDomElement& element );
+ void saveNameAttribute( TQDomElement& element ) const;
+
+ bool loadPhoneAttribute( TQDomElement& element );
+ void savePhoneAttributes( TQDomElement& element ) const;
+
+ void saveEmailAttributes( TQDomElement& element ) const;
+
+ bool loadAddressAttribute( TQDomElement& element );
+ void saveAddressAttributes( TQDomElement& element ) const;
+
+ void loadCustomAttributes( TQDomElement& element );
+ void saveCustomAttributes( TQDomElement& element ) const;
+
+ void loadDistrListMember( const TQDomElement& element );
+ void saveDistrListMembers( TQDomElement& element ) const;
+
+ TQImage loadPictureFromKMail( const TQString& attachmentName, KABC::ResourceKolab* resource, const TQString& subResource, Q_UINT32 sernum );
+ TQImage loadPictureFromAddressee( const KABC::Picture& picture );
+
+ TQByteArray loadDataFromKMail( const TQString& attachmentName, KABC::ResourceKolab* resource, const TQString& subResource, Q_UINT32 sernum );
+ TQByteArray loadSoundFromAddressee( const KABC::Sound& sound );
+
+ TQString productID() const;
+
+ TQString mGivenName;
+ TQString mMiddleNames;
+ TQString mLastName;
+ TQString mFullName;
+ TQString mInitials;
+ TQString mPrefix;
+ TQString mSuffix;
+ TQString mRole;
+ TQString mFreeBusyUrl;
+ TQString mOrganization;
+ TQString mWebPage;
+ TQString mIMAddress;
+ TQString mDepartment;
+ TQString mOfficeLocation;
+ TQString mProfession;
+ //TQString mJobTitle;
+ TQString mManagerName;
+ TQString mAssistant;
+ TQString mNickName;
+ TQString mSpouseName;
+ TQDate mBirthday;
+ TQDate mAnniversary;
+ TQImage mPicture;
+ TQImage mLogo;
+ TQByteArray mSound;
+ TQString mPictureAttachmentName;
+ TQString mLogoAttachmentName;
+ TQString mSoundAttachmentName;
+ TQString mChildren;
+ TQString mGender;
+ TQString mLanguage;
+ TQValueList<PhoneNumber> mPhoneNumbers;
+ TQValueList<Email> mEmails;
+ TQValueList<Address> mAddresses;
+ TQString mPreferredAddress;
float mLatitude;
float mLongitude;
bool mHasGeo;
bool mIsDistributionList;
struct Custom {
- QString app;
- QString name;
- QString value;
+ TQString app;
+ TQString name;
+ TQString value;
};
- QValueList<Custom> mCustomList;
+ TQValueList<Custom> mCustomList;
struct Member {
- QString displayName;
- QString email;
+ TQString displayName;
+ TQString email;
};
- QValueList<Member> mDistrListMembers;
+ TQValueList<Member> mDistrListMembers;
};
}