-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddchanneldialog.h
90 lines (77 loc) · 3.2 KB
/
addchanneldialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/****************************************************************************
* Copyright (C) 2018 by Sebastian Ziganki *
* *
* This file is part of Lpz3ncLittleHelper. *
* *
* Lpz3ncLittleHelper is free software: you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License. *
* *
* Lpz3ncLittleHelper is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with Box. If not, see http://www.gnu.org/licenses . *
****************************************************************************/
/**
* /file addchanneldialog.h
* /author Hackspider
* /brief Header file of the dialog to add a new twitch channel
*/
/* Include Guard */
#ifndef ADDCHANNELDIALOG_H
#define ADDCHANNELDIALOG_H
/* Necessary dependencies to Qt framework */
#include <QDialog>
/* AddChannelDialog declaration as part of the Ui namespace */
namespace Ui
{
class AddChannelDialog;
}
/**
* /brief The AddChannelDialog class declaraation. Derived from QDialog class.
*/
class AddChannelDialog : public QDialog
{
Q_OBJECT
public:
/**
* /brief Constructor of the AddChannelDialog class
* /param parent Parent of the AddChannelDialog object according to Qt's object tree
*/
explicit AddChannelDialog(QWidget *parent = 0);
/**
* /brief Destructor of the AddChannelDialog class
*/
~AddChannelDialog(void);
/**
* /brief After the dialog is closed the caller can get the new channel name by calling this method
* /return New channel name
*/
QString GetChannel(void);
/**
* /brief After the dialog is closed the caller can get the information if the channel should be connected on startup
* /return True if the channel should be connected on startup otherwise false
*/
bool GetDefaultConnect(void);
private slots:
/**
* /brief Internal method that will be called if the user presses OK on the dialog
*/
void on_dialogButtons_accepted(void);
/**
* /brief Internal method that will be called if the user presses Cancel on the dialog
*/
void on_dialogButtons_rejected(void);
private:
/**
* /brief Internal used variables
*/
Ui::AddChannelDialog *ui;
QString mChannel;
bool mDefaultConnect;
};
#endif /* ADDCHANNELDIALOG_H */