# shobject.h

Go to the documentation of this file.

    00001 /*
    00002  * SmartHome server: Base of the system
    00003  *
    00004  * Copyright (C) 2010 Daniel Pisi <dan.pisi@gmail.com>
    00005  *
    00006  * This program is free software; you can redistribute it and/or modify it
    00007  * under the terms of version 2 of the GNU General Public License
    00008  * as published by the Free Software Foundation.
    00009  *
    00010  */
    00011
    00018 #ifndef SHOBJECT_H
    00019 #define SHOBJECT_H
    00020
    00021 #include <QtCore/QCoreApplication>
    00022 #include <QList>
    00023 #include "shmessage.h"
    00024 #include "shpin.h"
    00025
    00026 // -----------------------------------------------------------------------------
    00027
    00032 class ShObject
    00033 {
    00034 public:
    00035     virtual ~ShObject() {};
    00036     virtual bool init(QString param) = 0;
    00037     virtual void updatePins(const QList<ShPin> &pins) = 0;
    00038
    00039     virtual void setObjectId(int id) = 0;
    00040     virtual int  objectId() = 0;
    00041
    00042     virtual void setIdApi(bool idApi) = 0;
    00043     virtual bool idApi() = 0;
    00044
    00045     virtual void processMessage(QSharedPointer<ShMessage> message) = 0;
    00046 };
    00047
    00048 QT_BEGIN_NAMESPACE
    00049 Q_DECLARE_INTERFACE(ShObject, "SmartHome.Plugin.ShObject/1.0");
    00050 QT_END_NAMESPACE
    00051
    00052 // -----------------------------------------------------------------------------
    00053
    00054 #endif // SHOBJECT_H

All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends