Updating existsing platforms now functional
[emufront] / src / dialogs / platformdialog.h
1 #ifndef PLATFORMDIALOG_H
2 #define PLATFORMDIALOG_H
3
4 #include "dbobjectdialog.h"
5
6 class PlatformDialog : public DbObjectDialog
7 {
8     Q_OBJECT
9
10     public:
11         PlatformDialog(QWidget *parent = 0);
12     ~PlatformDialog();
13
14     protected:
15         virtual int deleteObject();
16         virtual void addObject();
17         virtual void editObject();
18     virtual bool deleteItem();
19     virtual void updateDb(const EmuFrontObject*) const;
20     virtual void insertDb(const EmuFrontObject*) const;
21     virtual QSqlTableModel* getDataObjects();
22
23     private slots:
24     virtual void updateData();
25
26     private:
27     enum {
28         Platform_Id = 0,
29         Platform_Name = 1,
30         Platform_Filename = 2 };
31         static const QString DB_TABLE_NAME_PLATFORM;
32         //PlatformNameDialog *nameDialog;
33 };
34
35 #endif