Changeset 14378 for trunk/qt/session.h


Ignore:
Timestamp:
Dec 12, 2014, 11:21:04 PM (8 years ago)
Author:
mikedld
Message:

Remove redundant "struct" keyword use in C++ code (Qt client)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/session.h

    r14349 r14378  
    4646
    4747  public slots:
    48     void executed (int64_t tag, const QString& result, struct tr_variant * arguments);
     48    void executed (int64_t tag, const QString& result, tr_variant * arguments);
    4949
    5050  private:
     
    7171  public:
    7272    const QUrl& getRemoteUrl () const { return myUrl; }
    73     const struct tr_session_stats& getStats () const { return myStats; }
    74     const struct tr_session_stats& getCumulativeStats () const { return myCumulativeStats; }
     73    const tr_session_stats& getStats () const { return myStats; }
     74    const tr_session_stats& getCumulativeStats () const { return myCumulativeStats; }
    7575    const QString& sessionVersion () const { return mySessionVersion; }
    7676
     
    9191
    9292  private:
    93     void updateStats (struct tr_variant * args);
    94     void updateInfo (struct tr_variant * args);
     93    void updateStats (tr_variant * args);
     94    void updateInfo (tr_variant * args);
    9595    void parseResponse (const char * json, size_t len);
    96     static void localSessionCallback (tr_session *, struct evbuffer *, void *);
     96    static void localSessionCallback (tr_session *, evbuffer *, void *);
    9797
    9898  public:
    9999    void exec (const char * json);
    100     void exec (const struct tr_variant * request);
     100    void exec (const tr_variant * request);
    101101
    102102  public:
     
    107107    void pumpRequests ();
    108108    void sendTorrentRequest (const char * request, const QSet<int>& torrentIds);
    109     static void updateStats (struct tr_variant * d, struct tr_session_stats * stats);
     109    static void updateStats (tr_variant * d, tr_session_stats * stats);
    110110    void refreshTorrents (const QSet<int>& torrentIds);
    111111    QNetworkAccessManager * networkAccessManager ();
     
    152152  signals:
    153153    void responseReceived (const QByteArray& json);
    154     void executed (int64_t tag, const QString& result, struct tr_variant * arguments);
     154    void executed (int64_t tag, const QString& result, tr_variant * arguments);
    155155    void sourceChanged ();
    156156    void portTested (bool isOpen);
     
    158158    void sessionUpdated ();
    159159    void blocklistUpdated (int);
    160     void torrentsUpdated (struct tr_variant * torrentList, bool completeList);
    161     void torrentsRemoved (struct tr_variant * torrentList);
     160    void torrentsUpdated (tr_variant * torrentList, bool completeList);
     161    void torrentsRemoved (tr_variant * torrentList);
    162162    void dataReadProgress ();
    163163    void dataSendProgress ();
     
    176176    QUrl myUrl;
    177177    QNetworkAccessManager * myNAM;
    178     struct tr_session_stats myStats;
    179     struct tr_session_stats myCumulativeStats;
     178    tr_session_stats myStats;
     179    tr_session_stats myCumulativeStats;
    180180    QString mySessionVersion;
    181181};
Note: See TracChangeset for help on using the changeset viewer.