1 #ifndef NETWORKPROFILE_H
2 #define NETWORKPROFILE_H
5 #include <QtCore/QString>
6 #include <QSystemNetworkInfo>
8 class QStandardItemModel;
10 class QItemSelectionModel;
15 /** \class NetWorkProfile
16 \brief class for setting profile based on network rules
18 class NetWorkProfile : public QWidget
22 explicit NetWorkProfile(QWidget *parent = 0, QSettings *sett = 0);
25 void createModels(QStandardItemModel * cellM, QStandardItemModel * wifiM);
28 void s_network_profile(QString profile);
31 void SetProfilenames(QStringList list_of_profiles_n);
32 void DeletedProfile(QString name);
35 void ChangeInCellLocation();
38 QSystemNetworkInfo * p_networkcl;
41 QString profile_Currently;
47 QString FindWifiNameInModel(QString WifiNam);
48 QString FindIDLocInModel(QString IDCell);
50 QStandardItemModel *model_of_CellId;
51 QItemSelectionModel *selModel_CellId;
52 QStandardItemModel *model_of_WifiIf;
53 QItemSelectionModel* selModel_WifiIf;
57 QStringList list_of_profiles;
61 void ChangeInWifiName(QSystemNetworkInfo::NetworkMode, QString );
64 #endif // NETWORKPROFILE_H