diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2012-09-28 13:40:18 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2012-09-28 13:40:18 +0000 |
commit | 75360443eb879b49a72c11b2a3d2d299ca61f9d7 (patch) | |
tree | fdab3ff501710e19f31f63815957a1fe86dbcb88 /FTNoIR_Filter_Accela | |
parent | ee53c49af9789553fb51987bd6003ce30344e173 (diff) |
Modified sendHeadposeToGame, so it also sends raw data.
Unified the code by adding the Dll class to the protocols and moving the dialog to a separate source.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@173 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Filter_Accela')
-rw-r--r-- | FTNoIR_Filter_Accela/FTNoIR_Filter_accela.h | 15 | ||||
-rw-r--r-- | FTNoIR_Filter_Accela/ftnoir_filter_accela_dll.cpp | 34 |
2 files changed, 4 insertions, 45 deletions
diff --git a/FTNoIR_Filter_Accela/FTNoIR_Filter_accela.h b/FTNoIR_Filter_Accela/FTNoIR_Filter_accela.h index 742b4d1e..0a57eb88 100644 --- a/FTNoIR_Filter_Accela/FTNoIR_Filter_accela.h +++ b/FTNoIR_Filter_Accela/FTNoIR_Filter_accela.h @@ -135,18 +135,11 @@ public: FTNoIR_FilterDll();
~FTNoIR_FilterDll();
- void Release();
- void Initialize();
+ void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("Accela Filter Mk2"); };
+ void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("Accela Mk2"); };
+ void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("Accela filter Mk2"); };
- void getFullName(QString *strToBeFilled);
- void getShortName(QString *strToBeFilled);
- void getDescription(QString *strToBeFilled);
- void getIcon(QIcon *icon);
-
-private:
- QString filterFullName; // Filters' name and description
- QString filterShortName;
- QString filterDescription;
+ void getIcon(QIcon *icon){ *icon = QIcon(":/images/filter-16.png"); };
};
diff --git a/FTNoIR_Filter_Accela/ftnoir_filter_accela_dll.cpp b/FTNoIR_Filter_Accela/ftnoir_filter_accela_dll.cpp index ccd1aaae..e1452bf2 100644 --- a/FTNoIR_Filter_Accela/ftnoir_filter_accela_dll.cpp +++ b/FTNoIR_Filter_Accela/ftnoir_filter_accela_dll.cpp @@ -34,10 +34,6 @@ #include <QDebug>
FTNoIR_FilterDll::FTNoIR_FilterDll() {
- //populate the description strings
- filterFullName = "Accela Filter Mk2";
- filterShortName = "Accela Mk2";
- filterDescription = "Accela filter Mk2";
}
FTNoIR_FilterDll::~FTNoIR_FilterDll()
@@ -45,36 +41,6 @@ FTNoIR_FilterDll::~FTNoIR_FilterDll() }
-void FTNoIR_FilterDll::Release()
-{
- delete this;
-}
-
-void FTNoIR_FilterDll::Initialize()
-{
- return;
-}
-
-void FTNoIR_FilterDll::getFullName(QString *strToBeFilled)
-{
- *strToBeFilled = filterFullName;
-};
-
-void FTNoIR_FilterDll::getShortName(QString *strToBeFilled)
-{
- *strToBeFilled = filterShortName;
-};
-
-void FTNoIR_FilterDll::getDescription(QString *strToBeFilled)
-{
- *strToBeFilled = filterDescription;
-};
-
-void FTNoIR_FilterDll::getIcon(QIcon *icon)
-{
- *icon = QIcon(":/images/filter-16.png");
-};
-
////////////////////////////////////////////////////////////////////////////////
// Factory function that creates instances if the Filter object.
|