contentstorage/caclient/inc/canotifier_p.h
branchRCL_3
changeset 113 0efa10d348c0
equal deleted inserted replaced
111:053c6c7c14f3 113:0efa10d348c0
       
     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: canotifier_p.h
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CANOTIFIER_PRIVATE_H
       
    19 #define CANOTIFIER_PRIVATE_H
       
    20 
       
    21 #include <QSharedPointer>
       
    22 
       
    23 class CaClientNotifierProxy;
       
    24 class CaNotifier;
       
    25 class CaNotifierFilter;
       
    26 class CaObserver;
       
    27 class CaService;
       
    28 
       
    29 class CaNotifierPrivate
       
    30 {
       
    31 public:
       
    32 
       
    33     enum NotifierType {
       
    34         EntryChangedWithIdNotifierType = 0,
       
    35         EntryChangedWithEntryNotifierType,
       
    36         EntryTouchedNotifierType,
       
    37         GroupContentChangedNotifierType
       
    38     };
       
    39 
       
    40     CaNotifierPrivate(const CaNotifierFilter &notifierFilter, 
       
    41             CaClientNotifierProxy *notifierProxy);
       
    42     ~CaNotifierPrivate();
       
    43 
       
    44     int registerNotifier(NotifierType notifierType);
       
    45     void unregisterNotifier(NotifierType notifierType);
       
    46 
       
    47     void makeConnect();
       
    48 
       
    49 private:
       
    50 
       
    51     const CaNotifier *m_q;
       
    52 
       
    53     const CaNotifierFilter *mNotifierFilter;
       
    54 
       
    55     const CaObserver *mObserver;
       
    56 
       
    57     CaClientNotifierProxy *mNotifierProxy;
       
    58 
       
    59     QSharedPointer<CaService> mCaService;
       
    60 
       
    61     friend class CaNotifier;
       
    62 
       
    63 };
       
    64 
       
    65 #endif // CANOTIFIER_PRIVATE_H