source: src-qt4/PCDM/src/pcdm-config.h @ 28c79ad

releng/10.0.1releng/10.0.2
Last change on this file since 28c79ad was 28c79ad, checked in by Ken Moore <ken@…>, 5 months ago

Add an auto-login delay function for PCDM that defaults to 10 seconds. This will pop-up a window giving the user the specified amount of time to either cancel the auto-login or immediately continue on.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/* PCDM Login Manager:
2*  Written by Ken Moore (ken@pcbsd.org) 2012/2013
3*  Copyright(c) 2013 by the PC-BSD Project
4*  Available under the 3-clause BSD license
5*/
6
7#ifndef PCDM_CONFIG_H
8#define PCDM_CONFIG_H
9
10#include <QString>
11#include <QStringList>
12#include <QFile>
13#include <QDebug>
14
15class Config{
16
17private:
18  static void loadDefaults();
19  static void readConfigFile(QString);
20
21public:
22  //Load the Configuration File
23  static void loadConfigFile(QString);
24  //General Configuration Settings Output
25  static QString themeFile();
26  static QString xSessionsDir();
27  static QString xSessionsImageDir();
28  static QString loginScriptsDir();
29  static bool useAutoLogin();           //returns whether auto-login is enabled
30  static QString autoLoginUsername();   //returns username to log into automatically
31  static QString autoLoginDesktop();    //return *.desktop file to startup automatically
32  static QString autoLoginPassword();   //returns password to log in automatically
33  static int autoLoginDelay(); //Returns the number of seconds to delay auto-login
34  static QString splashscreen();        //return the image file for the splashscreen
35  static bool allowPasswordView();      //returns whether password view button is enabled
36
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.