Lines Matching refs:Prefs
150 myPrefs = new Prefs ( configDir );
152 myPrefs->set( Prefs::SESSION_REMOTE_HOST, host );
154 myPrefs->set( Prefs::SESSION_REMOTE_PORT, port );
156 myPrefs->set( Prefs::SESSION_REMOTE_USERNAME, username );
158 myPrefs->set( Prefs::SESSION_REMOTE_PASSWORD, password );
160 myPrefs->set( Prefs::SESSION_IS_REMOTE, true );
185 initKeys << Prefs::DIR_WATCH;
217 if( !myPrefs->getBool( Prefs::USER_HAS_GIVEN_INFORMED_CONSENT ))
256 if( !myPrefs->getBool( Prefs::SHOW_DESKTOP_NOTIFICATION ) )
311 myPrefs->set<bool>( Prefs::USER_HAS_GIVEN_INFORMED_CONSENT, true );
322 myPrefs->set( Prefs :: MAIN_WINDOW_HEIGHT, std::max( 100, mainwinRect.height( ) ) );
323 myPrefs->set( Prefs :: MAIN_WINDOW_WIDTH, std::max( 100, mainwinRect.width( ) ) );
324 myPrefs->set( Prefs :: MAIN_WINDOW_X, mainwinRect.x( ) );
325 myPrefs->set( Prefs :: MAIN_WINDOW_Y, mainwinRect.y( ) );
338 case Prefs :: BLOCKLIST_UPDATES_ENABLED:
342 case Prefs :: DIR_WATCH:
343 case Prefs :: DIR_WATCH_ENABLED: {
344 const QString path( myPrefs->getString( Prefs::DIR_WATCH ) );
345 const bool isEnabled( myPrefs->getBool( Prefs::DIR_WATCH_ENABLED ) );
358 if( !myPrefs->getBool( Prefs :: BLOCKLIST_UPDATES_ENABLED ) )
361 const QDateTime lastUpdatedAt = myPrefs->getDateTime( Prefs :: BLOCKLIST_DATE );
367 myPrefs->set( Prefs :: BLOCKLIST_DATE, now );
410 if( !myPrefs->getBool( Prefs :: OPTIONS_PROMPT ) )