18d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/* 28d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * wpa_gui - AddInterface class 38d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright (c) 2008, Jouni Malinen <j@w1.fi> 48d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * This software may be distributed under the terms of the BSD license. 6c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * See README for more details. 78d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 88d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 98d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#ifndef ADDINTERFACE_H 108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define ADDINTERFACE_H 118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#include <QObject> 138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 147a53dbb56693ee9f55c0cab1a8297436511e8613Dmitry Shmidt#include <QDialog> 157a53dbb56693ee9f55c0cab1a8297436511e8613Dmitry Shmidt#include <QTreeWidget> 167a53dbb56693ee9f55c0cab1a8297436511e8613Dmitry Shmidt#include <QVBoxLayout> 178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtclass WpaGui; 198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtclass AddInterface : public QDialog 218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{ 228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt Q_OBJECT 238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtpublic: 258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt AddInterface(WpaGui *_wpagui, QWidget *parent = 0); 268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtpublic slots: 288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt virtual void interfaceSelected(QTreeWidgetItem *sel); 298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtprivate: 318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt void addInterfaces(); 328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt bool addRegistryInterface(const QString &ifname); 338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt QVBoxLayout *vboxLayout; 358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt QTreeWidget *interfaceWidget; 368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt WpaGui *wpagui; 378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#endif /* ADDINTERFACE_H */ 40