predictivesearch/PcsAlgorithm/Algorithm2/inc/chinesefindutils.h
branchRCL_3
changeset 63 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
62:5b6f26637ad3 63:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  Identifies a contact in cache pools
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CHINESE_FIND_COMMON_ECE_H
       
    19 #define C_CHINESE_FIND_COMMON_ECE_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <w32std.h>
       
    23 #include <e32base.h>
       
    24 #include <cenrepnotifyhandler.h>
       
    25 
       
    26 // FORWARD DECLARATION
       
    27 class CRepository;
       
    28 
       
    29 
       
    30 class CFindRepositoryWatcher : public CBase, public MCenRepNotifyHandlerCallback
       
    31     {
       
    32 public:
       
    33     static CFindRepositoryWatcher* NewL(
       
    34         const TUid aUid,
       
    35         const TUint32 aKey,
       
    36         CCenRepNotifyHandler::TCenRepKeyType aKeyType,
       
    37         TCallBack aCallBack,
       
    38         CRepository* aRepository);
       
    39 
       
    40      static CFindRepositoryWatcher* NewL(
       
    41         const TUid aUid,
       
    42         TCallBack aCallBack,
       
    43         CRepository* aRepository);
       
    44 
       
    45     ~CFindRepositoryWatcher();
       
    46 
       
    47     TUint32 ChangedKey();
       
    48 
       
    49 public: // from MCenRepNotifyHandlerCallback
       
    50     void HandleNotifyInt(TUint32 aKey, TInt aNewValue);
       
    51     void HandleNotifyError(TUint32 aKey, TInt aError, CCenRepNotifyHandler* aHandler);
       
    52     void HandleNotifyGeneric(TUint32 aId);
       
    53 
       
    54 private:
       
    55     CFindRepositoryWatcher(
       
    56         const TUid aUid,
       
    57         const TUint32 aKey,
       
    58         TCallBack aCallBack,
       
    59         CRepository* aRepository);
       
    60 
       
    61     void ConstructL(CCenRepNotifyHandler::TCenRepKeyType aKeyType);
       
    62 
       
    63     void ConstructL();
       
    64 
       
    65 private:
       
    66     TUid iUid;
       
    67     TUint32 iKey;
       
    68     TUint32 iChangedKey;
       
    69     TCallBack iCallBack;
       
    70     CRepository* iRepository;
       
    71     CCenRepNotifyHandler* iNotifyHandler;
       
    72 
       
    73     };
       
    74 
       
    75 #endif // C_CHINESE_FIND_COMMON_ECE_H
       
    76 
       
    77 // End Of File