Changeset 8323 for trunk/qt/session.h


Ignore:
Timestamp:
May 3, 2009, 5:37:39 PM (13 years ago)
Author:
charles
Message:

(trunk qt) Remember between runs whether we were running a local or remote session. Add a gui dialog for switching sessions during runtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/session.h

    r8255 r8323  
    3838
    3939    public:
    40         Session( const char * configDir, Prefs& prefs, const char * remoteUrl, bool paused );
     40        Session( const char * configDir, Prefs& prefs );
    4141        ~Session( );
    4242
    4343        static const int ADD_TORRENT_TAG;
     44
     45    public:
     46        void stop( );
     47        void restart( );
     48
     49    private:
     50        void start( );
    4451
    4552    public:
     
    8592
    8693    public slots:
    87         void pause( const QSet<int>& torrentIds = QSet<int>() );
    88         void start( const QSet<int>& torrentIds = QSet<int>() );
     94        void pauseTorrents( const QSet<int>& torrentIds = QSet<int>() );
     95        void startTorrents( const QSet<int>& torrentIds = QSet<int>() );
    8996        void refreshSessionInfo( );
    9097        void refreshSessionStats( );
     
    107114
    108115    signals:
     116        void sourceChanged( );
    109117        void portTested( bool isOpen );
    110118        void statsUpdated( );
     
    120128        Prefs& myPrefs;
    121129        tr_session * mySession;
     130        QString myConfigDir;
    122131        QUrl myUrl;
    123132        QBuffer myBuffer;
Note: See TracChangeset for help on using the changeset viewer.