Changeset 14378 for trunk/qt/session.h
- Timestamp:
- Dec 12, 2014, 11:21:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/session.h
r14349 r14378 46 46 47 47 public slots: 48 void executed (int64_t tag, const QString& result, structtr_variant * arguments);48 void executed (int64_t tag, const QString& result, tr_variant * arguments); 49 49 50 50 private: … … 71 71 public: 72 72 const QUrl& getRemoteUrl () const { return myUrl; } 73 const structtr_session_stats& getStats () const { return myStats; }74 const structtr_session_stats& getCumulativeStats () const { return myCumulativeStats; }73 const tr_session_stats& getStats () const { return myStats; } 74 const tr_session_stats& getCumulativeStats () const { return myCumulativeStats; } 75 75 const QString& sessionVersion () const { return mySessionVersion; } 76 76 … … 91 91 92 92 private: 93 void updateStats ( structtr_variant * args);94 void updateInfo ( structtr_variant * args);93 void updateStats (tr_variant * args); 94 void updateInfo (tr_variant * args); 95 95 void parseResponse (const char * json, size_t len); 96 static void localSessionCallback (tr_session *, structevbuffer *, void *);96 static void localSessionCallback (tr_session *, evbuffer *, void *); 97 97 98 98 public: 99 99 void exec (const char * json); 100 void exec (const structtr_variant * request);100 void exec (const tr_variant * request); 101 101 102 102 public: … … 107 107 void pumpRequests (); 108 108 void sendTorrentRequest (const char * request, const QSet<int>& torrentIds); 109 static void updateStats ( struct tr_variant * d, structtr_session_stats * stats);109 static void updateStats (tr_variant * d, tr_session_stats * stats); 110 110 void refreshTorrents (const QSet<int>& torrentIds); 111 111 QNetworkAccessManager * networkAccessManager (); … … 152 152 signals: 153 153 void responseReceived (const QByteArray& json); 154 void executed (int64_t tag, const QString& result, structtr_variant * arguments);154 void executed (int64_t tag, const QString& result, tr_variant * arguments); 155 155 void sourceChanged (); 156 156 void portTested (bool isOpen); … … 158 158 void sessionUpdated (); 159 159 void blocklistUpdated (int); 160 void torrentsUpdated ( structtr_variant * torrentList, bool completeList);161 void torrentsRemoved ( structtr_variant * torrentList);160 void torrentsUpdated (tr_variant * torrentList, bool completeList); 161 void torrentsRemoved (tr_variant * torrentList); 162 162 void dataReadProgress (); 163 163 void dataSendProgress (); … … 176 176 QUrl myUrl; 177 177 QNetworkAccessManager * myNAM; 178 structtr_session_stats myStats;179 structtr_session_stats myCumulativeStats;178 tr_session_stats myStats; 179 tr_session_stats myCumulativeStats; 180 180 QString mySessionVersion; 181 181 };
Note: See TracChangeset
for help on using the changeset viewer.