diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-03-26 17:46:47 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-03-26 17:54:28 +0100 |
commit | 77a8a8f9dfc9a5cbbb8113c4e9cff6cc99e17d9f (patch) | |
tree | 14435c2fcf5d00244011e39a587dcbd81bc6d4d6 /kplayer/kplayersource.h | |
parent | 172761c982ab8ecb67dce7840564af5e89486d68 (diff) | |
download | kplayer-77a8a8f9dfc9a5cbbb8113c4e9cff6cc99e17d9f.tar.gz kplayer-77a8a8f9dfc9a5cbbb8113c4e9cff6cc99e17d9f.zip |
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kplayer/kplayersource.h')
-rw-r--r-- | kplayer/kplayersource.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kplayer/kplayersource.h b/kplayer/kplayersource.h index b82a411..f2d09cf 100644 --- a/kplayer/kplayersource.h +++ b/kplayer/kplayersource.h @@ -17,7 +17,7 @@ #define KPLAYERSOURCE_H #include <kdirwatch.h> -#include <qdir.h> +#include <tqdir.h> class KPlayerCollectionNode; class KPlayerContainerNode; @@ -34,7 +34,7 @@ class KPlayerNodeList; /**Source class, responsible for routing of subnodes into and out of the node. *@author kiriuja */ -class KPlayerSource : public QObject +class KPlayerSource : public TQObject { Q_OBJECT @@ -56,9 +56,9 @@ public: /** Initializes the node retrieval process. */ void start (bool groups); /** Retrieves the id of the next node. */ - bool next (bool& group, QString& id); + bool next (bool& group, TQString& id); /** Verifies the given id. */ - virtual bool verify (const QString& id); + virtual bool verify (const TQString& id); /** Saves the node data into the source. */ virtual void save (void); @@ -85,17 +85,17 @@ protected: /** Initializes the node retrieval process. */ virtual void enumStart (bool groups) = 0; /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id) = 0; + virtual bool enumNext (bool& group, TQString& id) = 0; /** Connects the given node and all subnodes. */ void connectNodes (KPlayerContainerNode* node); /** Searches for a node with the given ID in the given node and its subnodes. */ - bool find (KPlayerContainerNode* node, const QString& id); + bool find (KPlayerContainerNode* node, const TQString& id); /** Parent node. */ KPlayerContainerNode* m_parent; /** Parent node iterator. */ - QPtrListIterator<KPlayerNode>* m_iterator; + TQPtrListIterator<KPlayerNode>* m_iterator; /** Flag stored by start() for next(). */ bool m_groups; @@ -129,12 +129,12 @@ protected: /** Initializes the node retrieval process. */ virtual void enumStart (bool groups); /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); /** Current iterator. */ - QStringList::ConstIterator m_iterator; + TQStringList::ConstIterator m_iterator; /** End iterator. */ - QStringList::ConstIterator m_end; + TQStringList::ConstIterator m_end; }; /**Fixed source class, handles subnodes of a fixed node. @@ -159,10 +159,10 @@ public: protected: /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); /** List of fixed IDs. */ - QStringList m_fixed_ids; + TQStringList m_fixed_ids; }; /**Root source class, handles subnodes of the root node. @@ -211,10 +211,10 @@ protected: /** Initializes the node retrieval process. */ virtual void enumStart (bool groups); /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); /** List of pending devices. */ - QStringList m_pending; + TQStringList m_pending; }; /**Device source class, handles device nodes. @@ -259,7 +259,7 @@ protected: /** Initializes the node retrieval process. */ virtual void enumStart (bool groups); /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); /** Number of tracks. */ int m_tracks; @@ -284,10 +284,10 @@ protected: /** Initializes the node retrieval process. */ virtual void enumStart (bool groups); /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); /** List of pending devices. */ - QStringList m_pending; + TQStringList m_pending; /** List source. */ KPlayerListSource m_list; }; @@ -310,7 +310,7 @@ public: protected: /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); }; /**Directory source class, handles subnodes in filesystem directory. @@ -334,22 +334,22 @@ public: virtual bool canRemove (void) const; /** Verifies the given id. */ - virtual bool verify (const QString& id); + virtual bool verify (const TQString& id); protected slots: /** Receives dirty signal from directory watch. */ - void dirty (const QString& path); + void dirty (const TQString& path); protected: /** Initializes the node retrieval process. */ virtual void enumStart (bool groups); /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); /** Directory. */ - QDir m_directory; + TQDir m_directory; /** Entry info iterator. */ - QFileInfoListIterator* m_iterator; + TQFileInfoListIterator* m_iterator; /** Directory watch. */ KDirWatch m_watch; }; @@ -390,7 +390,7 @@ protected: /** Initializes the node retrieval process. */ virtual void enumStart (bool groups); /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); }; #if 0 @@ -415,7 +415,7 @@ public: { return (KPlayerCollectionNode*) m_parent; } /** Matches the meta information for the given ID against the criteria. */ - bool match (const QString& id); + bool match (const TQString& id); /** Adds the given nodes into the list of nodes, optionally linking to the origin. */ virtual KPlayerNode* add (const KPlayerNodeList& nodes, bool link, KPlayerNode* after = 0); @@ -435,7 +435,7 @@ protected: /** Initializes the node retrieval process. */ virtual void enumStart (bool groups); /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); }; /**Group source class, handles subnodes of a grouped node. @@ -471,7 +471,7 @@ protected: /** Initializes the node retrieval process. */ virtual void enumStart (bool groups); /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); /** Removes the given nodes from the given node and its subnodes. */ void remove (KPlayerContainerNode* node, const KPlayerNodeList& nodes); @@ -522,7 +522,7 @@ public: virtual bool canRemove (void) const; /** Matches the meta information for the given ID against the criteria. */ - bool match (const QString& id); + bool match (const TQString& id); //public slots: /** Adds the given nodes into the list of nodes. */ @@ -534,7 +534,7 @@ protected: /** Initializes the node retrieval process. */ virtual void enumStart (bool groups); /** Retrieves the id of the next node. */ - virtual bool enumNext (bool& group, QString& id); + virtual bool enumNext (bool& group, TQString& id); /** Current node. */ KPlayerContainerNode* m_current; |