Lines Matching refs:Prefs
142 case Prefs :: ALT_SPEED_LIMIT_DOWN:
143 case Prefs :: ALT_SPEED_LIMIT_ENABLED:
144 case Prefs :: ALT_SPEED_LIMIT_TIME_BEGIN:
145 case Prefs :: ALT_SPEED_LIMIT_TIME_DAY:
146 case Prefs :: ALT_SPEED_LIMIT_TIME_ENABLED:
147 case Prefs :: ALT_SPEED_LIMIT_TIME_END:
148 case Prefs :: ALT_SPEED_LIMIT_UP:
149 case Prefs :: BLOCKLIST_DATE:
150 case Prefs :: BLOCKLIST_ENABLED:
151 case Prefs :: BLOCKLIST_URL:
152 case Prefs :: DHT_ENABLED:
153 case Prefs :: DOWNLOAD_DIR:
154 case Prefs :: DOWNLOAD_QUEUE_ENABLED:
155 case Prefs :: DOWNLOAD_QUEUE_SIZE:
156 case Prefs :: DSPEED:
157 case Prefs :: DSPEED_ENABLED:
158 case Prefs :: IDLE_LIMIT:
159 case Prefs :: IDLE_LIMIT_ENABLED:
160 case Prefs :: INCOMPLETE_DIR:
161 case Prefs :: INCOMPLETE_DIR_ENABLED:
162 case Prefs :: LPD_ENABLED:
163 case Prefs :: PEER_LIMIT_GLOBAL:
164 case Prefs :: PEER_LIMIT_TORRENT:
165 case Prefs :: PEER_PORT:
166 case Prefs :: PEER_PORT_RANDOM_ON_START:
167 case Prefs :: QUEUE_STALLED_MINUTES:
168 case Prefs :: PEX_ENABLED:
169 case Prefs :: PORT_FORWARDING:
170 case Prefs :: SCRIPT_TORRENT_DONE_ENABLED:
171 case Prefs :: SCRIPT_TORRENT_DONE_FILENAME:
172 case Prefs :: START:
173 case Prefs :: TRASH_ORIGINAL:
174 case Prefs :: USPEED:
175 case Prefs :: USPEED_ENABLED:
176 case Prefs :: UTP_ENABLED:
180 case Prefs :: RATIO:
183 case Prefs :: RATIO_ENABLED:
187 case Prefs :: ENCRYPTION:
205 case Prefs :: RPC_AUTH_REQUIRED:
209 case Prefs :: RPC_ENABLED:
213 case Prefs :: RPC_PASSWORD:
217 case Prefs :: RPC_PORT:
221 case Prefs :: RPC_USERNAME:
225 case Prefs :: RPC_WHITELIST_ENABLED:
229 case Prefs :: RPC_WHITELIST:
243 Session :: Session( const char * configDir, Prefs& prefs ):
316 if( myPrefs.get<bool>(Prefs::SESSION_IS_REMOTE) )
320 url.setHost( myPrefs.get<QString>(Prefs::SESSION_REMOTE_HOST) );
321 url.setPort( myPrefs.get<int>(Prefs::SESSION_REMOTE_PORT) );
323 if( myPrefs.get<bool>(Prefs::SESSION_REMOTE_AUTH) )
325 url.setUserName( myPrefs.get<QString>(Prefs::SESSION_REMOTE_USERNAME) );
326 url.setPassword( myPrefs.get<QString>(Prefs::SESSION_REMOTE_PASSWORD) );
850 for( int i=Prefs::FIRST_CORE_PREF; i<=Prefs::LAST_CORE_PREF; ++i )
857 if( i == Prefs :: ENCRYPTION )
908 myPrefs.set( Prefs::RATIO_ENABLED, b ? true : false );
910 myPrefs.set( Prefs::RATIO, x );
915 myPrefs.set( Prefs::RPC_ENABLED, tr_sessionIsRPCEnabled ( mySession ) );
916 myPrefs.set( Prefs::RPC_AUTH_REQUIRED, tr_sessionIsRPCPasswordEnabled ( mySession ) );
917 myPrefs.set( Prefs::RPC_PASSWORD, tr_sessionGetRPCPassword ( mySession ) );
918 myPrefs.set( Prefs::RPC_PORT, tr_sessionGetRPCPort ( mySession ) );
919 myPrefs.set( Prefs::RPC_USERNAME, tr_sessionGetRPCUsername ( mySession ) );
920 myPrefs.set( Prefs::RPC_WHITELIST_ENABLED, tr_sessionGetRPCWhitelistEnabled ( mySession ) );
921 myPrefs.set( Prefs::RPC_WHITELIST, tr_sessionGetRPCWhitelist ( mySession ) );
953 tr_bencDictAddBool( args, "paused", !myPrefs.getBool( Prefs::START ) );
975 tr_bencDictAddBool( args, "paused", !myPrefs.getBool( Prefs::START ) );
1044 url.setPort( myPrefs.getInt( Prefs::RPC_PORT ) );