predictivesearch/PcsAlgorithm/Algorithm2/inc/chinesefindutils.h
changeset 0 e686773b3f54
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/predictivesearch/PcsAlgorithm/Algorithm2/inc/chinesefindutils.h	Tue Feb 02 10:12:17 2010 +0200
@@ -0,0 +1,77 @@
+/*
+* Copyright (c) 2006-2007 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:  Identifies a contact in cache pools
+*
+*/
+
+#ifndef C_CHINESE_FIND_COMMON_ECE_H
+#define C_CHINESE_FIND_COMMON_ECE_H
+
+// INCLUDES
+#include <w32std.h>
+#include <e32base.h>
+#include <cenrepnotifyhandler.h>
+
+// FORWARD DECLARATION
+class CRepository;
+
+
+class CFindRepositoryWatcher : public CBase, public MCenRepNotifyHandlerCallback
+    {
+public:
+    static CFindRepositoryWatcher* NewL(
+        const TUid aUid,
+        const TUint32 aKey,
+        CCenRepNotifyHandler::TCenRepKeyType aKeyType,
+        TCallBack aCallBack,
+        CRepository* aRepository);
+
+     static CFindRepositoryWatcher* NewL(
+        const TUid aUid,
+        TCallBack aCallBack,
+        CRepository* aRepository);
+
+    ~CFindRepositoryWatcher();
+
+    TUint32 ChangedKey();
+
+public: // from MCenRepNotifyHandlerCallback
+    void HandleNotifyInt(TUint32 aKey, TInt aNewValue);
+    void HandleNotifyError(TUint32 aKey, TInt aError, CCenRepNotifyHandler* aHandler);
+    void HandleNotifyGeneric(TUint32 aId);
+
+private:
+    CFindRepositoryWatcher(
+        const TUid aUid,
+        const TUint32 aKey,
+        TCallBack aCallBack,
+        CRepository* aRepository);
+
+    void ConstructL(CCenRepNotifyHandler::TCenRepKeyType aKeyType);
+
+    void ConstructL();
+
+private:
+    TUid iUid;
+    TUint32 iKey;
+    TUint32 iChangedKey;
+    TCallBack iCallBack;
+    CRepository* iRepository;
+    CCenRepNotifyHandler* iNotifyHandler;
+
+    };
+
+#endif // C_CHINESE_FIND_COMMON_ECE_H
+
+// End Of File