File indexing completed on 2024-04-14 14:31:57

0001 // Copyright (c) 2003 Rob Kaper <cap@capsi.com>
0002 //
0003 // This library is free software; you can redistribute it and/or
0004 // modify it under the terms of the GNU Lesser General Public
0005 // License version 2.1 as published by the Free Software Foundation.
0006 //
0007 // This library is distributed in the hope that it will be useful,
0008 // but WITHOUT ANY WARRANTY; without even the implied warranty of
0009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0010 // Lesser General Public License for more details.
0011 //
0012 // You should have received a copy of the GNU Lesser General Public License
0013 // along with this library; see the file COPYING.LIB.  If not, write to
0014 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0015 // Boston, MA 02110-1301, USA.
0016 
0017 #ifndef ATLANTIK_EVENT_H
0018 #define ATLANTIK_EVENT_H
0019 
0020 #include <network_defs.h>
0021 
0022 #include <QDateTime>
0023 #include <QString>
0024 
0025 class Event
0026 {
0027 public:
0028     Event(const QDateTime &dateTime, const QString &description, EventType type);
0029     QDateTime dateTime() const;
0030     QString description() const;
0031     EventType type() const;
0032 
0033 private:
0034     QDateTime m_dateTime;
0035     QString m_description;
0036     EventType m_type : 8;
0037 };
0038 
0039 #endif