diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /src/profileengine/lib/profileengine.h | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/profileengine/lib/profileengine.h')
-rw-r--r-- | src/profileengine/lib/profileengine.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/profileengine/lib/profileengine.h b/src/profileengine/lib/profileengine.h index 5128803d..e790dece 100644 --- a/src/profileengine/lib/profileengine.h +++ b/src/profileengine/lib/profileengine.h @@ -19,7 +19,7 @@ #ifndef PROFILEENGINE_H #define PROFILEENGINE_H -#include <qmap.h> +#include <tqmap.h> #include <ktrader.h> @@ -28,7 +28,7 @@ /** Profile listing operation. Used to get a plain list of profiles -and store it in the QMap<QString, Profile*>. +and store it in the TQMap<TQString, Profile*>. */ class ProfileListing{ public: @@ -37,7 +37,7 @@ public: profiles[profile->name()] = profile; } - QMap<QString, Profile*> profiles; + TQMap<TQString, Profile*> profiles; }; /**Profile resource listing operation. @@ -45,17 +45,17 @@ Used to get a list of urls to the profile resources. Resource urls can be filtered by an @p filter parameter passed to the constructor. Filter can have values -as described in @ref QDir::setNameFilter function documentation.*/ +as described in @ref TQDir::setNameFilter function documentation.*/ class ProfileListingEx { public: - ProfileListingEx(const QString &filter): m_filter(filter) {} + ProfileListingEx(const TQString &filter): m_filter(filter) {} void operator() (Profile *profile) { resourceList += profile->resources(m_filter); } KURL::List resourceList; - QString m_filter; + TQString m_filter; }; /** @@ -100,29 +100,29 @@ public: }; /**@return The list of plugin offers for given profile and type.*/ - KTrader::OfferList offers(const QString &profileName, OfferType offerType); + KTrader::OfferList offers(const TQString &profileName, OfferType offerType); /**@return The list of all plugin offers for given type.*/ KTrader::OfferList allOffers(OfferType offerType); /**@return The list of URLs to the resources (files) with given @p extension. @param profileName A name of a profile to find resources in. - @param nameFilter Name filter for files. @see QDir::setNameFilter documentation + @param nameFilter Name filter for files. @see TQDir::setNameFilter documentation for name filters syntax.*/ - KURL::List resources(const QString &profileName, const QString &nameFilter); + KURL::List resources(const TQString &profileName, const TQString &nameFilter); /**@return The list of URLs to the resources (files) with given @p extension. This list is obtained by a recursive search that process given profile and all it's subprofiles. @param profileName A name of a profile to find resources in. - @param nameFilter Name filter for files. @see QDir::setNameFilter documentation + @param nameFilter Name filter for files. @see TQDir::setNameFilter documentation for name filters syntax.*/ - KURL::List resourcesRecursive(const QString &profileName, const QString &nameFilter); + KURL::List resourcesRecursive(const TQString &profileName, const TQString &nameFilter); /**Adds a resource for the profile. Resource will be copied to the user profile directory (like $HOME/.kde/share/apps/kdevelop/profiles/...). @param profileName A name of the profile. @param url The url to a file to copy as a profile resource.*/ - void addResource(const QString &profileName, const KURL &url); + void addResource(const TQString &profileName, const KURL &url); /**Gets the difference between @p profile1 and @p profile2. Difference is calculated as two lists of plugins to be unloaded and loaded @@ -134,8 +134,8 @@ public: @param load Will be filled with a list of plugins to load. @note Resulting lists are not cleared. Pass only clean lists in the common case.*/ - void diffProfiles(OfferType offerType, const QString &profile1, const QString &profile2, - QStringList &unload, KTrader::OfferList &load); + void diffProfiles(OfferType offerType, const TQString &profile1, const TQString &profile2, + TQStringList &unload, KTrader::OfferList &load); /**@return The root profile. Root profile is always named "KDevelop" and it defines an empty list of plugins. Applications built on KDevelop platform @@ -143,7 +143,7 @@ public: Profile *rootProfile() const { return m_rootProfile; } /**Finds a profile with given name. @return The profile found or 0 if it does not exist.*/ - Profile *findProfile(const QString &profileName); + Profile *findProfile(const TQString &profileName); /**Walks profiles tree and applies operation @p op to each profile found in the tree below @p root (@p root profile itself is not processed). @@ -158,7 +158,7 @@ public: profiles[profile->name()] = profile; } - QMap<QString, Profile*> profiles; + TQMap<TQString, Profile*> profiles; }; @endcode Use case for such operation - building a list of all profiles: @@ -177,8 +177,8 @@ public: template<class Operation> void walkProfiles(Operation &op, Profile *root) { - QValueList<Profile*> children = root->children(); - for (QValueList<Profile*>::iterator it = children.begin(); it != children.end(); ++it) + TQValueList<Profile*> children = root->children(); + for (TQValueList<Profile*>::iterator it = children.begin(); it != children.end(); ++it) { op(*it); walkProfiles<Operation>(op, *it); @@ -244,8 +244,8 @@ public: template<class Operation, class Result> void walkProfiles(Operation &op, Result *result, Profile *root) { - QValueList<Profile*> children = root->children(); - for (QValueList<Profile*>::iterator it = children.begin(); it != children.end(); ++it) + TQValueList<Profile*> children = root->children(); + for (TQValueList<Profile*>::iterator it = children.begin(); it != children.end(); ++it) { Result *newResult = op(result, *it); walkProfiles<Operation>(op, newResult, *it); @@ -253,9 +253,9 @@ public: } protected: - void processDir(const QString &dir, const QString &currPath, QMap<QString, Profile*> &passedPaths, Profile *root); + void processDir(const TQString &dir, const TQString &currPath, TQMap<TQString, Profile*> &passedPaths, Profile *root); - KURL::List resources(Profile *profile, const QString &nameFilter); + KURL::List resources(Profile *profile, const TQString &nameFilter); /**Gets a complete listing of available profiles and looks for a profile. @param listing Profiles listing will be saved here. @@ -263,7 +263,7 @@ protected: if no profile with that name is found. @param profileName The name of a profile to find.*/ void getProfileWithListing(ProfileListing &listing, Profile **profile, - const QString &profileName); + const TQString &profileName); private: Profile *m_rootProfile; |