summaryrefslogtreecommitdiffstats
path: root/kontact/src/profilemanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/src/profilemanager.h')
-rw-r--r--kontact/src/profilemanager.h68
1 files changed, 34 insertions, 34 deletions
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 <qmap.h>
-#include <qobject.h>
-#include <qstring.h>
+#include <tqmap.h>
+#include <tqobject.h>
+#include <tqstring.h>
template <class T> 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<Kontact::Profile> profiles() const;
+ TQValueList<Kontact::Profile> 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<QString, Kontact::Profile> m_profiles;
+ TQMap<TQString, Kontact::Profile> m_profiles;
};
}