Changeset 10065


Ignore:
Timestamp:
Feb 1, 2010, 4:43:10 AM (12 years ago)
Author:
charles
Message:

(trunk, libT) #2844 "add able to disable '.part' suffix for incomplete files" -- added to GTK+ and Qt clients and to RPC spec for 1.90

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/rpc-spec.txt

    r9943 r10065  
    407407   "peer-port-random-on-start"| boolean    true means pick a random peer port on launch
    408408   "port-forwarding-enabled"  | boolean    true means enabled
     409   "rename-partial-files"     | boolean    true means append ".part" to incomplete files
    409410   "rpc-version"              | number     the current RPC API version
    410411   "rpc-version-minimum"      | number     the minimum RPC API version supported
     
    573574         |         | yes       | session-set    | new arg "incomplete-dir"
    574575         |         | yes       | session-set    | new arg "incomplete-dir-enabled"
    575 
    576 
     576   ------+---------+-----------+----------------+-------------------------------
     577   8     | 1.90    | yes       | session-set    | new arg "rename-partial-files"
     578         |         | yes       | session-get    | new arg "rename-partial-files"
     579
  • trunk/gtk/main.c

    r9889 r10065  
    11941194        tr_sessionSetPexEnabled( tr, pref_flag_get( key ) );
    11951195    }
     1196    else if( !strcmp( key, TR_PREFS_KEY_RENAME_PARTIAL_FILES ) )
     1197    {
     1198        tr_sessionSetIncompleteFileNamingEnabled( tr, pref_flag_get( key ) );
     1199    }
    11961200    else if( !strcmp( key, TR_PREFS_KEY_DHT_ENABLED ) )
    11971201    {
  • trunk/gtk/tr-prefs.c

    r10031 r10065  
    296296    s = _( "Mo_ve .torrent file to the trash" );
    297297    w = new_check_button( s, PREF_KEY_TRASH_ORIGINAL, core );
     298    hig_workarea_add_wide_control( t, &row, w );
     299
     300    s = _( "Append \"._part\" to incomplete files' names" );
     301    w = new_check_button( s, TR_PREFS_KEY_RENAME_PARTIAL_FILES, core );
    298302    hig_workarea_add_wide_control( t, &row, w );
    299303
  • trunk/libtransmission/rpcimpl.c

    r9972 r10065  
    11861186    if( tr_bencDictFindBool( args_in, TR_PREFS_KEY_PORT_FORWARDING, &boolVal ) )
    11871187        tr_sessionSetPortForwardingEnabled( session, boolVal );
     1188    if( tr_bencDictFindBool( args_in, TR_PREFS_KEY_RENAME_PARTIAL_FILES, &boolVal ) )
     1189        tr_sessionSetIncompleteFileNamingEnabled( session, boolVal );
    11881190    if( tr_bencDictFindReal( args_in, "seedRatioLimit", &d ) )
    11891191        tr_sessionSetRatioLimit( session, d );
     
    12881290    tr_bencDictAddInt ( d, TR_PREFS_KEY_PEER_PORT_RANDOM_ON_START, tr_sessionGetPeerPortRandomOnStart( s ) );
    12891291    tr_bencDictAddBool( d, TR_PREFS_KEY_PORT_FORWARDING, tr_sessionIsPortForwardingEnabled( s ) );
    1290     tr_bencDictAddInt ( d, "rpc-version", 7 );
     1292    tr_bencDictAddBool( d, TR_PREFS_KEY_RENAME_PARTIAL_FILES, tr_sessionIsIncompleteFileNamingEnabled( s ) );
     1293    tr_bencDictAddInt ( d, "rpc-version", 8 );
    12911294    tr_bencDictAddInt ( d, "rpc-version-minimum", 1 );
    12921295    tr_bencDictAddReal( d, "seedRatioLimit", tr_sessionGetRatioLimit( s ) );
  • trunk/qt/prefs-dialog.cc

    r9890 r10065  
    567567        hig->addWideControl( checkBoxNew( tr( "&Start when added" ), Prefs::START ) );
    568568        hig->addWideControl( checkBoxNew( tr( "Mo&ve .torrent file to the trash" ), Prefs::TRASH_ORIGINAL ) );
     569        hig->addWideControl( checkBoxNew( tr( "Append \".&part\" to incomplete files' names" ), Prefs::RENAME_PARTIAL_FILES ) );
    569570
    570571        b = myIncompleteButton = new QPushButton;
  • trunk/qt/prefs.cc

    r9868 r10065  
    103103    { RATIO, TR_PREFS_KEY_RATIO, QVariant::Double },
    104104    { RATIO_ENABLED, TR_PREFS_KEY_RATIO_ENABLED, QVariant::Bool },
     105    { RENAME_PARTIAL_FILES, TR_PREFS_KEY_RENAME_PARTIAL_FILES, QVariant::Bool },
    105106    { RPC_AUTH_REQUIRED, TR_PREFS_KEY_RPC_AUTH_REQUIRED, QVariant::Bool },
    106107    { RPC_ENABLED, TR_PREFS_KEY_RPC_ENABLED, QVariant::Bool },
  • trunk/qt/prefs.h

    r9868 r10065  
    107107            RATIO,
    108108            RATIO_ENABLED,
     109            RENAME_PARTIAL_FILES,
    109110            RPC_AUTH_REQUIRED,
    110111            RPC_ENABLED,
Note: See TracChangeset for help on using the changeset viewer.