# xbmessage.h

Go to the documentation of this file.

    00001 /*
    00002  * SmartHome server: Plug-in xbee
    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 XBMESSAGE_H
    00019 #define XBMESSAGE_H
    00020
    00021 #include <QObject>
    00022 #include <QTimer>
    00023 #include <QScopedPointer>
    00024 #include "shmessage.h"
    00025 #include "xbpacket.h"
    00026
    00027 // -----------------------------------------------------------------------------
    00028
    00029 class XbMessage;
    00030
    00031 typedef QSharedPointer<XbMessage> XbMessagePtr;
    00032
    00033 // -----------------------------------------------------------------------------
    00034
    00039 class XbMessage : public QObject
    00040 {
    00041     Q_OBJECT
    00042
    00043 public:
    00044     XbMessage(QObject *parent = 0);
    00045     ~XbMessage();
    00046
    00047     QSharedPointer<ShMessage>  message;
    00048     QSharedPointer<XbPacket>   packet;
    00049     QTimer                    *timer;
    00050
    00051 signals:
    00052     void timeout();
    00053 };
    00054 // -----------------------------------------------------------------------------
    00055
    00056 #endif // XBMESSAGE_H

All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends