summaryrefslogtreecommitdiffstats
path: root/src/gui/selectprofileform.h
blob: 8566a4e599bb956a437250559fb8c931a6ab99bd (plain)
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
#ifndef SELECTPROFILEFORM_H
#define SELECTPROFILEFORM_H
class t_phone;
extern t_phone *phone;

#include <list>
#include <string>
#include "phone.h"
#include <QDialog>
#include "ui_selectprofileform.h"

class SelectProfileForm : public QDialog, public Ui::SelectProfileForm
{
	Q_OBJECT

public:
    SelectProfileForm(QWidget* parent = 0);
	~SelectProfileForm();

	std::list<std::string> selectedProfiles;

	virtual int execForm();
	static bool getUserProfiles( QStringList & profiles, QString & error );

public slots:
	virtual void showForm( QWidget * _mainWindow );
	virtual void runProfile();
	virtual void editProfile();
	virtual void newProfile();
	virtual void newProfile( bool exec_mode );
	virtual void newProfileCreated();
	virtual void deleteProfile();
	virtual void renameProfile();
	virtual void setAsDefault();
	virtual void wizardProfile();
	virtual void wizardProfile( bool exec_mode );
	virtual void diamondcardProfile();
	virtual void diamondcardProfile( bool exec_mode );
	virtual void sysSettings();
	virtual void fillProfileListView( const QStringList & profiles );
    virtual void toggleItem( QModelIndex item );

signals:
	void selection(const list<string> &);
	void profileRenamed();

protected slots:
	virtual void languageChange();

private:
	bool defaultSet;
	t_user *user_config;
	QWidget *mainWindow;

	void init();
	void destroy();

};


#endif