homescreensrv_plat/contentstorage_api/tsrc/t_contentstorage_api/inc/t_caclientnotifier.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/homescreensrv_plat/contentstorage_api/tsrc/t_contentstorage_api/inc/t_caclientnotifier.h Wed Oct 06 16:00:22 2010 +0300
@@ -0,0 +1,76 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Main test class for hspluginmodel library.
+*
+*/
+
+#ifndef T_CACLIENTNOTIFIER_H
+#define T_CACLIENTNOTIFIER_H
+
+#include <QObject>
+#include <QList>
+#include "cadefs.h"
+
+class CaEntry;
+class CaNotifierFilter;
+class CaNotifier;
+class CaService;
+
+/**
+ * @test Test class for hsmcsserviceprovider library.
+ */
+class TestCaClientNotifier : public QObject
+{
+ Q_OBJECT
+
+public:
+
+ TestCaClientNotifier();
+ TestCaClientNotifier(const CaService &service, CaNotifierFilter *filter = 0);
+ ~TestCaClientNotifier();
+
+ CaNotifier *getNotifier() const;
+ CaNotifierFilter *getFilter() const;
+ void clean();
+
+public slots:
+
+ void entryChanged(int entryId, ChangeType changeType);
+ void entryChanged(const CaEntry &entry, ChangeType changeType);
+ void entryTouched(int id);
+ void groupContentChanged(int groupId);
+
+public:
+
+ int mEntryId;
+ int mGroupId;
+ ChangeType mChangeType;
+ CaEntry *mEntry;
+
+ int mCount;
+ QList<int> *mEntryIds;
+ QList<int> *mGroupIds;
+ QList<ChangeType> *mChangeTypes;
+ QList<const CaEntry *> *mEntries;
+
+ CaNotifierFilter *mFilter;
+ CaNotifier *mNotifier;
+
+private:
+
+ Q_DISABLE_COPY(TestCaClientNotifier)
+
+};
+
+#endif