diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kioslave/media/libmediacommon/medium.h | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/media/libmediacommon/medium.h')
-rw-r--r-- | kioslave/media/libmediacommon/medium.h | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/kioslave/media/libmediacommon/medium.h b/kioslave/media/libmediacommon/medium.h index 543bdf596..54e1556dc 100644 --- a/kioslave/media/libmediacommon/medium.h +++ b/kioslave/media/libmediacommon/medium.h @@ -19,15 +19,15 @@ #ifndef _MEDIUM_H_ #define _MEDIUM_H_ -#include <qstring.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqstringlist.h> #include <kurl.h> -#include <qmap.h> +#include <tqmap.h> class Medium { public: - typedef QValueList<const Medium> List; + typedef TQValueList<const Medium> List; static const uint ID = 0; static const uint NAME = 1; @@ -44,51 +44,51 @@ public: static const uint ENCRYPTED = 12; static const uint CLEAR_DEVICE_UDI = 13; static const uint PROPERTIES_COUNT = 14; - static const QString SEPARATOR; + static const TQString SEPARATOR; - Medium(const QString &id, const QString &name); - static const Medium create(const QStringList &properties); - static List createList(const QStringList &properties); + Medium(const TQString &id, const TQString &name); + static const Medium create(const TQStringList &properties); + static List createList(const TQStringList &properties); - const QStringList &properties() const { return m_properties; } + const TQStringList &properties() const { return m_properties; } - QString id() const { return m_properties[ID]; } - QString name() const { return m_properties[NAME]; } - QString label() const { return m_properties[LABEL]; } - QString userLabel() const { return m_properties[USER_LABEL]; } + TQString id() const { return m_properties[ID]; } + TQString name() const { return m_properties[NAME]; } + TQString label() const { return m_properties[LABEL]; } + TQString userLabel() const { return m_properties[USER_LABEL]; } bool isMountable() const { return m_properties[MOUNTABLE]=="true"; } - QString deviceNode() const { return m_properties[DEVICE_NODE]; } - QString mountPoint() const { return m_properties[MOUNT_POINT]; } - QString fsType() const { return m_properties[FS_TYPE]; } + TQString deviceNode() const { return m_properties[DEVICE_NODE]; } + TQString mountPoint() const { return m_properties[MOUNT_POINT]; } + TQString fsType() const { return m_properties[FS_TYPE]; } bool isMounted() const { return m_properties[MOUNTED]=="true"; } - QString baseURL() const { return m_properties[BASE_URL]; } - QString mimeType() const { return m_properties[MIME_TYPE]; } - QString iconName() const { return m_properties[ICON_NAME]; } + TQString baseURL() const { return m_properties[BASE_URL]; } + TQString mimeType() const { return m_properties[MIME_TYPE]; } + TQString iconName() const { return m_properties[ICON_NAME]; } bool isEncrypted() const { return m_properties[ENCRYPTED]=="true"; }; - QString clearDeviceUdi() const { return m_properties[CLEAR_DEVICE_UDI]; }; + TQString clearDeviceUdi() const { return m_properties[CLEAR_DEVICE_UDI]; }; bool needMounting() const; bool needDecryption() const; KURL prettyBaseURL() const; - QString prettyLabel() const; + TQString prettyLabel() const; - void setName(const QString &name); - void setLabel(const QString &label); - void setUserLabel(const QString &label); + void setName(const TQString &name); + void setLabel(const TQString &label); + void setUserLabel(const TQString &label); void setEncrypted(bool state); bool mountableState(bool mounted); - void mountableState(const QString &deviceNode, - const QString &mountPoint, - const QString &fsType, bool mounted); - void mountableState(const QString &deviceNode, - const QString &clearDeviceUdi, - const QString &mountPoint, - const QString &fsType, bool mounted); - void unmountableState(const QString &baseURL = QString::null); - - void setMimeType(const QString &mimeType); - void setIconName(const QString &iconName); + void mountableState(const TQString &deviceNode, + const TQString &mountPoint, + const TQString &fsType, bool mounted); + void mountableState(const TQString &deviceNode, + const TQString &clearDeviceUdi, + const TQString &mountPoint, + const TQString &fsType, bool mounted); + void unmountableState(const TQString &baseURL = TQString::null); + + void setMimeType(const TQString &mimeType); + void setIconName(const TQString &iconName); void setHalMounted(bool flag) const { m_halmounted = flag; } bool halMounted() const { return m_halmounted; } @@ -96,21 +96,21 @@ private: Medium(); void loadUserLabel(); - QStringList m_properties; + TQStringList m_properties; mutable bool m_halmounted; -friend class QValueListNode<const Medium>; +friend class TQValueListNode<const Medium>; }; namespace MediaManagerUtils { - static inline QMap<QString,QString> splitOptions(const QStringList & options) + static inline TQMap<TQString,TQString> splitOptions(const TQStringList & options) { - QMap<QString,QString> valids; + TQMap<TQString,TQString> valids; - for (QStringList::ConstIterator it = options.begin(); it != options.end(); ++it) + for (TQStringList::ConstIterator it = options.begin(); it != options.end(); ++it) { - QString key = (*it).left((*it).find('=')); - QString value = (*it).mid((*it).find('=') + 1); + TQString key = (*it).left((*it).find('=')); + TQString value = (*it).mid((*it).find('=') + 1); valids[key] = value; } return valids; |