Added license information
authorMikko Keinänen <mikko.keinanen@gmail.com>
Sat, 22 May 2010 09:06:39 +0000 (12:06 +0300)
committerMikko Keinänen <mikko.keinanen@gmail.com>
Sat, 22 May 2010 09:06:39 +0000 (12:06 +0300)
21 files changed:
src/dataobjects/emufrontobject.cpp
src/dataobjects/emufrontobject.h
src/dataobjects/platform.cpp
src/dataobjects/platform.h
src/db/databasemanager.cpp
src/db/databasemanager.h
src/db/dbplatform.cpp
src/db/dbplatform.h
src/dialogs/dbobjectdialog.cpp
src/dialogs/dbobjectdialog.h
src/dialogs/emufrontdialog.cpp
src/dialogs/emufrontdialog.h
src/dialogs/namedialog.cpp
src/dialogs/namedialog.h
src/dialogs/platformdialog.cpp
src/dialogs/platformdialog.h
src/dialogs/platformnamedialog.cpp
src/dialogs/platformnamedialog.h
src/main.cpp
src/mainwindow.cpp
src/mainwindow.h

index b5f55a1..1cf5c9d 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #include "emufrontobject.h"
 
 EmuFrontObject::EmuFrontObject() : id(-1), name(0)
index 7c6b0d3..eb80b00 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #ifndef EMUFRONTOBJECT_H
 #define EMUFRONTOBJECT_H
 
index a9f90a9..79a0ad9 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #include "platform.h"
 
 Platform::Platform() : EmuFrontObject()
index ba20d54..41effc0 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #ifndef PLATFORM_H
 #define PLATFORM_H
 
index bd4b435..ed0057f 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #include "databasemanager.h"
 #include <QObject>
 #include <QSqlDatabase>
index 65c78c2..46f5184 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #ifndef DATABASEMANAGER_H
 #define DATABASEMANAGER_H
 
@@ -14,22 +33,21 @@ public:
        DatabaseManager(QObject *parent = 0);
        ~DatabaseManager();
 
+    virtual QSqlTableModel* getDataModel() = 0;
     static bool openDB();
     static bool deleteDB();
     static bool dbExists();
     static QSqlError lastError();
     static bool createDB();
-    virtual QSqlTableModel* getDataModel() = 0;
     void resetModel();
 
 protected:
     QSqlTableModel *sqlTableModel;
 
 private:
-    //static QSqlDatabase db;
        static const QString DB_FILENAME;
-    static QString getDbPath();
     virtual QSqlTableModel* getData() = 0;
+    static QString getDbPath();
 };
 
 #endif
index a7133e2..1205891 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #include <QSqlRecord>
 #include <QSqlQuery>
 #include <QSqlTableModel>
index 87984bd..4486c21 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #ifndef DBPLATFORM_H
 #define DBPLATFORM_H
 
index 14e281b..5d1eb51 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #include <QtGui>
 #include <QSqlTableModel>
 #include "dbobjectdialog.h"
index 3f3f0ee..1175adb 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #ifndef DBOBJECTDIALOG_H
 #define DBOBJECTDIALOG_H
 
index 0264b65..0141429 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 
 #include <QtGui>
 #include "emufrontdialog.h"
index fae3570..e26dea0 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #ifndef EMUFRONTDIALOG_H
 #define EMUFRONTDIALOG_H
 #include <QDialog>
index 64f3ddc..105bd89 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #include <QtGui>
 #include "namedialog.h"
 
index ab269eb..f0ed49b 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #ifndef NAMEDIALOG_H
 #define NAMEDIALOG_H
 
index d86217d..27e0c6b 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #include <QtGui>
 #include <QAbstractItemView>
 #include <QSqlTableModel>
index 5a6d008..d1d8237 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #ifndef PLATFORMDIALOG_H
 #define PLATFORMDIALOG_H
 
index 80617cd..8230337 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #include <QtGui>
 #include "platformnamedialog.h"
 #include "../db/databasemanager.h"
index 9b83241..dc112c4 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #ifndef PLATFORMNAMEDIALOG_H
 #define PLATFORMNAMEDIALOG_H
 
index 6a3edc2..37f491c 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #include <QApplication>
 #include <QTextStream>
 #include <iostream>
index 71c2a3c..53b435a 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #include <QtGui>
 #include "mainwindow.h"
 #include "dialogs/platformdialog.h"
index d84095a..e645727 100644 (file)
@@ -1,3 +1,22 @@
+// EmuFront
+// Copyright Mikko Keinänen 2010
+//
+// This file is part of EmuFront.
+//
+//
+// EmuFront is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
+
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H