contentstorage/caclient/tsrc/t_caclient/inc/t_caclientnotifier.h
changeset 117 c63ee96dbe5f
equal deleted inserted replaced
115:3ab5c078b490 117:c63ee96dbe5f
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Main test class for hspluginmodel library.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef T_CACLIENTNOTIFIER_H
       
    19 #define T_CACLIENTNOTIFIER_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QList>
       
    23 #include "cadefs.h"
       
    24 
       
    25 class CaEntry;
       
    26 class CaNotifierFilter;
       
    27 class CaNotifier;
       
    28 class CaService;
       
    29 
       
    30 /**
       
    31  * @test Test class for hsmcsserviceprovider library.
       
    32  */
       
    33 class TestCaClientNotifier : public QObject
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38 
       
    39     TestCaClientNotifier();
       
    40     TestCaClientNotifier(const CaService &service, CaNotifierFilter *filter = 0);
       
    41     ~TestCaClientNotifier();
       
    42 
       
    43     CaNotifier *getNotifier() const;
       
    44     CaNotifierFilter *getFilter() const;
       
    45     void clean();
       
    46 
       
    47 public slots:
       
    48 
       
    49     void entryChanged(int entryId, ChangeType changeType);
       
    50     void entryChanged(const CaEntry &entry, ChangeType changeType);
       
    51     void entryTouched(int id);
       
    52     void groupContentChanged(int groupId);
       
    53 
       
    54 public:
       
    55 
       
    56     int mEntryId;
       
    57     int mGroupId;
       
    58     ChangeType mChangeType;
       
    59     CaEntry *mEntry;
       
    60 
       
    61     int mCount;
       
    62     QList<int> *mEntryIds;
       
    63     QList<int> *mGroupIds;
       
    64     QList<ChangeType> *mChangeTypes;
       
    65     QList<const CaEntry *> *mEntries;
       
    66 
       
    67     CaNotifierFilter *mFilter;
       
    68     CaNotifier *mNotifier;
       
    69 
       
    70 private:
       
    71 
       
    72     Q_DISABLE_COPY(TestCaClientNotifier)
       
    73 
       
    74 };
       
    75 
       
    76 #endif