Changeset 8323 for trunk/qt/prefs.cc


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/prefs.cc

    r8216 r8323  
    5757    { MAIN_WINDOW_Y, "main-window-y", QVariant::Int },
    5858    { FILTER_MODE, "filter-mode", TrTypes::FilterModeType },
     59    { SESSION_IS_REMOTE, "remote-session-enabled", QVariant::Bool },
     60    { SESSION_REMOTE_HOST, "remote-session-host", QVariant::String },
     61    { SESSION_REMOTE_PORT, "remote-session-port", QVariant::Int },
     62    { SESSION_REMOTE_AUTH, "remote-session-requres-authentication", QVariant::Bool },
     63    { SESSION_REMOTE_USERNAME, "remote-session-username", QVariant::String },
     64    { SESSION_REMOTE_PASSWORD, "remote-session-password", QVariant::String },
    5965
    6066    /* libtransmission settings */
     
    257263    tr_bencDictAddInt( d, keyStr(START), true );
    258264    tr_bencDictAddInt( d, keyStr(TRASH_ORIGINAL), false );
     265    tr_bencDictAddStr( d, keyStr(SESSION_REMOTE_HOST), "localhost" );
     266    tr_bencDictAddInt( d, keyStr(SESSION_REMOTE_PORT), 9091 );
     267    tr_bencDictAddBool( d, keyStr(SESSION_IS_REMOTE), false );
     268    tr_bencDictAddBool( d, keyStr(SESSION_REMOTE_AUTH), false );
    259269}
    260270
Note: See TracChangeset for help on using the changeset viewer.