source: src/model/event.h @ e5bc908

qt5
Last change on this file since e5bc908 was e5bc908, checked in by komarma <komarma@…>, 12 years ago

Creating initial application directory structure.

  • Property mode set to 100644
File size: 724 bytes
Line 
1#ifndef EVENT_H
2#define EVENT_H
3
4#include <QDateTime>
5
6class Event
7{
8public:
9    static Event getById(int id, int conferenceId);
10
11public:
12    int id() const { return mId; }
13    int conferenceId() const { return mConferenceId; }
14    QDateTime start() const { return mStart; }
15    int duration() const { return mDuration; }
16    int activityId() const { return mActivityId; }
17    int typeId() const { return mTypeId; }
18    int languageId() const { return mLanguageId; }
19
20private:
21    Event() {}; // private constructor, use static methods to access instances
22
23private:
24    int mId;
25    int mConferenceId;
26    QDateTime mStart;
27    int mDuration;
28    int mActivityId;
29    int mTypeId;
30    int mLanguageId;
31};
32
33#endif // EVENT_H
Note: See TracBrowser for help on using the repository browser.