source: src-qt4/pc-dmconf/mainwindow.h @ fb7fe1b

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since fb7fe1b was fb7fe1b, checked in by Kris Moore <kris@…>, 18 months ago

Add new pc-dmconf utility to the system and control panel,
it will allow configuring the login manager PCDM

  • Property mode set to 100644
File size: 2.3 KB
Line 
1/**************************************************************************
2*   Copyright (C) 2012 by Yuri Momotyuk                                   *
3*   yurkis@gmail.com                                                      *
4*                                                                         *
5*   Permission is hereby granted, free of charge, to any person obtaining *
6*   a copy of this software and associated documentation files (the       *
7*   "Software"), to deal in the Software without restriction, including   *
8*   without limitation the rights to use, copy, modify, merge, publish,   *
9*   distribute, sublicense, and/or sell copies of the Software, and to    *
10*   permit persons to whom the Software is furnished to do so, subject to *
11*   the following conditions:                                             *
12*                                                                         *
13*   The above copyright notice and this permission notice shall be        *
14*   included in all copies or substantial portions of the Software.       *
15*                                                                         *
16*   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       *
17*   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    *
18*   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*
19*   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *
20*   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
21*   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
22*   OTHER DEALINGS IN THE SOFTWARE.                                       *
23***************************************************************************/
24
25#ifndef MAINWINDOW_H
26#define MAINWINDOW_H
27
28#include <QMainWindow>
29#include <QVector>
30#include <QString>
31
32namespace Ui {
33    class MainWindow;
34}
35
36class MainWindow : public QMainWindow
37{
38    Q_OBJECT
39
40public:
41    explicit MainWindow(QWidget *parent = 0);
42    ~MainWindow();
43
44private:
45    void initUI();
46    void getUsers();
47
48    QVector<QString> mvUsers;
49    Ui::MainWindow *ui;
50
51public slots:
52    void slotSingleInstance();
53
54private slots:
55    void on_EnableXDCMP_clicked(bool checked);
56    void on_AutoLoginEnabledCB_clicked(bool checked);
57    void on_SaveButton_clicked();
58    void on_UsersList_currentIndexChanged(int item);
59};
60
61#endif // MAINWINDOW_H
Note: See TracBrowser for help on using the repository browser.