blob: 2ce8e4d233772c07a3874d0b8b374ca651cc7a36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef ORGANIZERADAPTER_H
#define ORGANIZERADAPTER_H
#include "libpebble/calendarevent.h"
#include <QObject>
#include <QOrganizerManager>
#include <QOrganizerAbstractRequest>
#include <QOrganizerEvent>
QTORGANIZER_USE_NAMESPACE
class OrganizerAdapter : public QObject
{
Q_OBJECT
public:
explicit OrganizerAdapter(QObject *parent = 0);
QList<CalendarEvent> items() const;
public slots:
void refresh();
signals:
void itemsChanged(const QList<CalendarEvent> &items);
private:
QOrganizerManager *m_manager;
QList<CalendarEvent> m_items;
};
#endif // ORGANIZERADAPTER_H
|