Skip to content
Snippets Groups Projects
Commit 2b9d07a3 authored by Emmanuel Lepage Vallée's avatar Emmanuel Lepage Vallée Committed by Guillaume Roguez
Browse files

itembase: Add introspection macros


Change-Id: I584e311c2ffe9d3f705b0635ea88b5fbda25eb58
Reviewed-by: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 69169ad3
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,8 @@ class ItemBasePrivate; ...@@ -28,6 +28,8 @@ class ItemBasePrivate;
*/ */
class LIB_EXPORT ItemBase : public QObject class LIB_EXPORT ItemBase : public QObject
{ {
Q_OBJECT
friend class CollectionInterface; friend class CollectionInterface;
public: public:
//Constructor //Constructor
...@@ -43,10 +45,10 @@ public: ...@@ -43,10 +45,10 @@ public:
T2* extension() const; T2* extension() const;
//Mutator methods //Mutator methods
bool save () const; Q_INVOKABLE bool save () const;
bool edit () ; Q_INVOKABLE bool edit () ;
bool remove () ; Q_INVOKABLE bool remove () ;
bool isActive() const; Q_INVOKABLE bool isActive() const;
//Setter //Setter
void setCollection(CollectionInterface* backend); void setCollection(CollectionInterface* backend);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment