From a8bfdc6e704703ccd2a34a7a8d55fe53b5f7933a Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Fri, 4 May 2012 12:17:32 +0200 Subject: [PATCH] Removed unused interfaces and added the data storageinterface --- src/customWidgets/UBMediaWidget.h | 2 +- src/interfaces/IDataStorage.h | 19 +++++++++++++++++++ src/interfaces/IDropable.h | 21 --------------------- src/interfaces/IResizeable.h | 15 --------------- src/interfaces/interfaces.pri | 5 ++--- 5 files changed, 22 insertions(+), 40 deletions(-) create mode 100644 src/interfaces/IDataStorage.h delete mode 100644 src/interfaces/IDropable.h delete mode 100644 src/interfaces/IResizeable.h diff --git a/src/customWidgets/UBMediaWidget.h b/src/customWidgets/UBMediaWidget.h index 9919ca4e..12281243 100644 --- a/src/customWidgets/UBMediaWidget.h +++ b/src/customWidgets/UBMediaWidget.h @@ -27,7 +27,7 @@ #include #include -#include "interfaces/IResizeable.h" +//#include "interfaces/IResizeable.h" #include "UBActionableWidget.h" #define UBMEDIABUTTON_SIZE 32 diff --git a/src/interfaces/IDataStorage.h b/src/interfaces/IDataStorage.h new file mode 100644 index 00000000..c3795773 --- /dev/null +++ b/src/interfaces/IDataStorage.h @@ -0,0 +1,19 @@ +/* + * This program 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. + * + * This program 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 this program. If not, see . + */ + +#ifndef IDATASTORAGE_H +#define IDATASTORAGE_H + +#endif // IDATASTORAGE_H diff --git a/src/interfaces/IDropable.h b/src/interfaces/IDropable.h deleted file mode 100644 index a75f4f16..00000000 --- a/src/interfaces/IDropable.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef IDROPABLE_H -#define IDROPABLE_H - -#include -#include -#include -#include - -class IDropable -{ -public: - virtual ~IDropable(){} - -protected: - virtual void dropEvent(QDropEvent* pEvent) = 0; - virtual void dragEnterEvent(QDragEnterEvent* pEvent) = 0; - virtual void dragMoveEvent(QDragMoveEvent* pEvent) = 0; - virtual void dragLeaveEvent(QDragLeaveEvent* pEvent) = 0; -}; - -#endif // IDROPABLE_H diff --git a/src/interfaces/IResizeable.h b/src/interfaces/IResizeable.h deleted file mode 100644 index b84ac8e5..00000000 --- a/src/interfaces/IResizeable.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef IRESIZEABLE_H -#define IRESIZEABLE_H - -#include - -class IResizeable -{ -public: - ~IResizeable(); - -protected: - virtual void resizeEvent(QResizeEvent* pEvent) = 0; -}; - -#endif // IRESIZEABLE_H diff --git a/src/interfaces/interfaces.pri b/src/interfaces/interfaces.pri index 55098bf3..bac61bda 100644 --- a/src/interfaces/interfaces.pri +++ b/src/interfaces/interfaces.pri @@ -1,3 +1,2 @@ -HEADERS += src/interfaces/IDropable.h \ - src/interfaces/IDropable.h \ - src/interfaces/IResizeable.h +HEADERS += \ + src/interfaces/IDataStorage.h