Debian Codegraph @

storageplugins/hcontacts/unittest/ContactsTest.h

raw
1 /*
2 * This file is part of buteo-sync-plugins package
3 *
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2014 Jolla Ltd.
6 *
7 * Contributors: Sateesh Kavuri <[email protected]>
8 * Valério Valério <[email protected]>
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public License
12 * version 2.1 as published by the Free Software Foundation.
13 *
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22 * 02110-1301 USA
23 *
24 */
25
26 #ifndef TESTCONTACTS_H_
27 #define TESTCONTACTS_H_
28
29 #include <QObject>
30
31 #include <QList>
32 #include <QStringList>
33 #include <QContactManager>
34 #include <QContactId>
35
36 namespace Buteo
37 {
38 class StoragePlugin;
39 }
40
41 class ContactsTest : public QObject
42 {
43
44 Q_OBJECT
45
46 private slots:
47 void initTestCase();
48 void cleanupTestCase();
49
50 void testSuiteSingle();
51
52 void testSuiteBatched();
53
54 //void pf177715();
55 private:
56
57 void runTestSuite( const QByteArray& aOriginalData, const QByteArray& aModifiedData,
58 Buteo::StoragePlugin& aPlugin, bool aBatched );
59
60 /*
61 void directDelete( const QList<QContactLocalId>& aContactIds, QContactManager& manager );
62
63 void directAdd( const QStringList& aVCards, QContactManager& manager );
64 */
65
66 };
67
68 #endif /* TESTCONTACTS_H_ */