# shbase.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 SHBASE_H
    00019 #define SHBASE_H
    00020
    00021 #include <QObject>
    00022 #include <QPair>
    00023 #include "shobject.h"
    00024 #include "shpin.h"
    00025
    00026 // -----------------------------------------------------------------------------
    00027
    00036 class ShBase : public QObject
    00037 {
    00038     Q_OBJECT
    00039
    00040 public:
    00041     ShBase(QObject *parent = 0);
    00042
    00043 public slots:
    00044     void routeMessage(ShMessagePtr message);
    00045
    00046 private:
    00047     void reload();
    00048
    00049     QList<ShPin> queryPins(int objectId);
    00050     int queryPinId(int object, QString signal);
    00051     bool pinBelongsTo(int pin, int object);
    00052     ShPin queryPin(int pinId);
    00053
    00054     QMap<int,ShObject*> mObjects;
    00055 };
    00056 // -----------------------------------------------------------------------------
    00057
    00058 #endif // SHBASE_H

All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends