From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kontact/src/profilemanager.h | 68 ++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'kontact/src/profilemanager.h') diff --git a/kontact/src/profilemanager.h b/kontact/src/profilemanager.h index e8b10adb5..ff6d6e1bf 100644 --- a/kontact/src/profilemanager.h +++ b/kontact/src/profilemanager.h @@ -25,9 +25,9 @@ #ifndef KONTACT_PROFILEMANAGER_H #define KONTACT_PROFILEMANAGER_H -#include -#include -#include +#include +#include +#include template class QValueList; @@ -43,23 +43,23 @@ class Profile public: Profile(); - explicit Profile( const QString& id, bool isLocal = false ); + explicit Profile( const TQString& id, bool isLocal = false ); - QString id() const; + TQString id() const; - QString name() const; + TQString name() const; - QString description() const; + TQString description() const; bool isNull() const; - void setName( const QString& name ); + void setName( const TQString& name ); - void setDescription( const QString& description ); + void setDescription( const TQString& description ); bool operator==( const Kontact::Profile& other ) const; - QString saveLocation() const; + TQString saveLocation() const; private: // ProfileManager only @@ -69,21 +69,21 @@ private: // ProfileManager only }; void setLocal( SetLocalMode mode ); bool isLocal() const; - void setOriginalLocation( const QString& path ); - void setId( const QString& id ); + void setOriginalLocation( const TQString& path ); + void setId( const TQString& id ); private: - static void copyConfigFiles( const QString& source, const QString& dest ); + static void copyConfigFiles( const TQString& source, const TQString& dest ); - QString localSaveLocation() const; + TQString localSaveLocation() const; private: - QString m_id; - QString m_name; - QString m_description; + TQString m_id; + TQString m_name; + TQString m_description; bool m_local; - QString m_originalLocation; + TQString m_originalLocation; }; class ProfileManager : public QObject @@ -105,47 +105,47 @@ public: ~ProfileManager(); - Kontact::Profile profileById( const QString& id ) const; + Kontact::Profile profileById( const TQString& id ) const; bool addProfile( const Kontact::Profile& profile, bool syncConfig = true ); void removeProfile( const Kontact::Profile& profile ); - void removeProfile( const QString& id ); + void removeProfile( const TQString& id ); void updateProfile( const Kontact::Profile& profile ); - void loadProfile( const QString& id ); + void loadProfile( const TQString& id ); - void saveToProfile( const QString& id ); + void saveToProfile( const TQString& id ); - QValueList profiles() const; + TQValueList profiles() const; - ExportError exportProfileToDirectory( const QString& id, const QString& path ); + ExportError exportProfileToDirectory( const TQString& id, const TQString& path ); - ImportError importProfileFromDirectory( const QString& path ); + ImportError importProfileFromDirectory( const TQString& path ); - QString generateNewId() const; + TQString generateNewId() const; signals: - void profileAdded( const QString& id ); + void profileAdded( const TQString& id ); - void profileRemoved( const QString& id ); + void profileRemoved( const TQString& id ); - void profileUpdated( const QString& id ); + void profileUpdated( const TQString& id ); - void profileLoaded( const QString& id ); + void profileLoaded( const TQString& id ); - void saveToProfileRequested( const QString& id ); + void saveToProfileRequested( const TQString& id ); void profileImportFinished( ImportError status ); private: static ProfileManager* m_self; - static Kontact::Profile readFromConfiguration( const QString& configFile, bool isLocal ); + static Kontact::Profile readFromConfiguration( const TQString& configFile, bool isLocal ); - explicit ProfileManager( QObject* parent = 0 ); + explicit ProfileManager( TQObject* parent = 0 ); void readConfig(); @@ -154,7 +154,7 @@ private: void writeProfileConfig( const Kontact::Profile& profile ) const; private: - QMap m_profiles; + TQMap m_profiles; }; } -- cgit v1.2.1