1 /**************************************************************************** 2 ** 3 ** Copyright (C) 2008-2010 Andrey Rijov <ANDron142@yandex.ru> 4 ** 5 ** This file is part of AQEMU. 6 ** 7 ** This program is free software; you can redistribute it and/or modify 8 ** it under the terms of the GNU General Public License as published by 9 ** the Free Software Foundation; either version 2 of the License. 10 ** 11 ** This program is distributed in the hope that it will be useful, 12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ** GNU General Public License for more details. 15 ** 16 ** You should have received a copy of the GNU General Public License 17 ** along with this program; if not, write to the Free Software 18 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 ** Boston, MA 02110-1301, USA. 20 ** 21 ****************************************************************************/ 22 23 #ifndef ADD_NEW_DEVICE_WINDOW_H 24 #define ADD_NEW_DEVICE_WINDOW_H 25 26 #include "VM.h" 27 #include "VM_Devices.h" 28 29 #include "ui_Add_New_Device_Window.h" 30 31 class Add_New_Device_Window: public QDialog 32 { 33 Q_OBJECT 34 35 public: 36 Add_New_Device_Window( QWidget *parent = 0 ); 37 38 VM_Nativ_Storage_Device Get_Device() const; 39 void Set_Device( const VM_Nativ_Storage_Device &dev ); 40 41 void Set_Emulator_Devices( const Available_Devices &devices ); 42 43 void Set_Enabled( bool enabled ); 44 45 private slots: 46 void on_CB_Interface_currentIndexChanged( const QString &text ); 47 void on_TB_File_Path_Browse_clicked(); 48 void done(int); 49 50 private: 51 VM_Nativ_Storage_Device Device; 52 Ui::Add_New_Device_Window ui; 53 }; 54 55 #endif 56