Changeset 8232


Ignore:
Timestamp:
Apr 13, 2009, 6:21:22 PM (13 years ago)
Author:
charles
Message:

(trunk qt) clean up #includes

Location:
trunk/qt
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/details.cc

    r8221 r8232  
    3939#include <QVBoxLayout>
    4040#include <QHBoxLayout>
     41
     42#include <libtransmission/transmission.h>
    4143
    4244#include "details.h"
  • trunk/qt/options.h

    r8188 r8232  
    2525#include <QFile>
    2626#include <QTimer>
    27 
    28 #include <libtransmission/transmission.h>
    2927
    3028#include "file-tree.h"
  • trunk/qt/prefs.h

    r8216 r8232  
    1919#include <QVariant>
    2020
    21 #include <libtransmission/transmission.h>
    22 #include <libtransmission/bencode.h>
     21#include "filters.h"
    2322
    24 #include "filters.h"
     23extern "C"
     24{
     25    struct tr_benc;
     26}
    2527
    2628class Prefs: public QObject
     
    125127        QString myConfigDir;
    126128        QVariant myValues[PREFS_COUNT];
    127         void initDefaults( tr_benc* );
     129        void initDefaults( struct tr_benc* );
    128130
    129131    public:
  • trunk/qt/session.cc

    r8221 r8232  
    2525#include <libtransmission/transmission.h>
    2626#include <libtransmission/bencode.h>
     27#include <libtransmission/json.h>
    2728#include <libtransmission/rpcimpl.h>
    2829#include <libtransmission/utils.h> /* tr_free */
  • trunk/qt/session.h

    r8221 r8232  
    2323
    2424#include <libtransmission/transmission.h>
    25 #include <libtransmission/json.h>
    2625
    2726#include "speed.h"
     27
     28extern "C"
     29{
     30    struct tr_benc;
     31}
    2832
    2933class Prefs;
     
    5761
    5862    private:
    59         void updateStats( tr_benc * args );
    60         void updateInfo( tr_benc * args );
     63        void updateStats( struct tr_benc * args );
     64        void updateInfo( struct tr_benc * args );
    6165        void parseResponse( const char * json, size_t len );
    6266        static void localSessionCallback( tr_session *, const char *, size_t, void * );
     
    6468    public:
    6569        void exec( const char * request );
    66         void exec( const tr_benc * request );
     70        void exec( const struct tr_benc * request );
    6771
    6872    private:
     
    7074        void pumpRequests( );
    7175        void sendTorrentRequest( const char * request, const QSet<int>& torrentIds );
    72         static void updateStats( tr_benc * d, struct tr_session_stats * stats );
     76        static void updateStats( struct tr_benc * d, struct tr_session_stats * stats );
    7377        void refreshTorrents( const QSet<int>& torrentIds );
    7478
     
    106110        void sessionUpdated( );
    107111        void blocklistUpdated( int );
    108         void torrentsUpdated( tr_benc * torrentList, bool completeList );
    109         void torrentsRemoved( tr_benc * torrentList );
     112        void torrentsUpdated( struct tr_benc * torrentList, bool completeList );
     113        void torrentsRemoved( struct tr_benc * torrentList );
    110114        void dataReadProgress( );
    111115        void dataSendProgress( );
  • trunk/qt/torrent.h

    r8196 r8232  
    231231        int compareRatio( const Torrent& ) const;
    232232        int compareETA( const Torrent& ) const;
    233         tr_bool hasETA( ) const { return getETA( ) >= 0; }
     233        bool hasETA( ) const { return getETA( ) >= 0; }
    234234        int getETA( ) const { return getInt( ETA ); }
    235235        QDateTime lastActivity( ) const { return getDateTime( DATE_ACTIVITY ); }
Note: See TracChangeset for help on using the changeset viewer.