synchroniser.h 634 Bytes
Newer Older
Camilo higuita's avatar
Camilo higuita committed
1 2
#ifndef SYNCHRONISER_H
#define SYNCHRONISER_H
3 4 5 6 7 8 9 10

#include <QObject>
#ifdef STATIC_MAUIKIT
#include "fmh.h"
#else
#include <MauiKit/fmh.h>
#endif

11 12 13
#include "vcard.h"


14
class DBActions;
Camilo higuita's avatar
Camilo higuita committed
15
class Synchroniser : public QObject
16 17 18
{
    Q_OBJECT
public:
Camilo higuita's avatar
Camilo higuita committed
19
    explicit Synchroniser(QObject *parent = nullptr);
20 21

    FMH::MODEL_LIST getContacts(const QString &query);
22
    bool insertContact(const FMH::MODEL &contact);
23
    bool updateContact(const FMH::MODEL &contact);
24
    bool removeContact(const FMH::MODEL &contact);
25

26 27
private:
    DBActions *dba;
28 29
    vCard tovCard(const FMH::MODEL &contact);

30 31 32 33 34
signals:

public slots:
};

Camilo higuita's avatar
Camilo higuita committed
35
#endif // SYNCHRONISER_H