contentpublishingsrv/contentharvester/factorysettingsplugin/inc/chfactorysettingsinstallnotifier.h
changeset 0 79c6a41cd166
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contentpublishingsrv/contentharvester/factorysettingsplugin/inc/chfactorysettingsinstallnotifier.h	Thu Dec 17 08:54:17 2009 +0200
@@ -0,0 +1,129 @@
+/*
+* Copyright (c) 2008 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:  Sis package installation event listener
+ *
+*/
+
+
+#ifndef C_CCHFACTORYSETTINGSINSTALLNOTIFIER_H
+#define C_CCHFACTORYSETTINGSINSTALLNOTIFIER_H
+
+#include <e32base.h>
+#include <e32property.h>
+
+class CCHFactorySettings;
+
+/**
+ *  Central Repository notifier.
+ *
+ *  @since S60 S60 v3.1
+ */
+class CCHFactorySettingsInstallNotifier : public CActive
+    {
+    /**
+     * Enum defining the purpouse of the installation event.
+     */
+    enum TInstOp
+        {
+        EInstOpNone = 0x00000000,
+        EInstOpInstall = 0x00000001,
+        EInstOpUninstall = 0x00000002,
+        EInstOpRestore = 0x00000004
+        };
+
+    /**
+     * Enum defining the exit status of the installation event.
+     */
+    enum TInstOpStatus
+        {
+        EInstOpStatusNone = 0x00000000,
+        EInstOpStatusSuccess = 0x00000100,
+        EInstOpStatusAborted = 0x00000200
+        };
+
+public:
+
+    /**
+     * Creates an instance of CCHFactorySettingsInstallNotifier implementation.
+     * @param aCallBack Reference to notifier interface.
+     * @param aCategory Package uid.
+     * @param aKey Key for central repository.
+     */
+    static CCHFactorySettingsInstallNotifier* NewL(
+        CCHFactorySettings* aCallback, TUid aCategory, TUint aKey );
+
+    /**
+     * Destructor.
+     */
+    virtual ~CCHFactorySettingsInstallNotifier();
+
+private:
+    /**
+     * Constructor.
+     * @param aCallBack Reference to notifier interface.
+     * @param aCategory Package uid.
+     * @param aKey Key for central repository.
+     */
+    CCHFactorySettingsInstallNotifier( CCHFactorySettings* aCallback,
+        TUid aCategory, TUint aKey );
+
+    /**
+     * Symbian 2nd phase constructor.
+     */
+    void ConstructL();
+
+    /**
+     * From CActive.
+     */
+    void DoCancel();
+
+    /**
+     * From CActive.
+     */
+    void RunL();
+
+    /**
+     * From CActive.
+     */
+    TInt RunError( TInt aError );
+
+private:
+    /**
+     * User side interface to Publish & Subscribe.
+     * Own.
+     */
+    RProperty iProperty;
+
+    /**
+     * Interface for notifying changes in SWI.
+     * Not own.
+     */
+    CCHFactorySettings* iCallback;
+
+    /**
+     * Category uid.
+     * Own.
+     */
+    TUid iCategory;
+
+    /**
+     * Key identifier.
+     * Own.
+     */
+    TUint iKey;
+
+    };
+
+#endif // C_CCHFACTORYSETTINGSINSTALLNOTIFIER_H
+// End of File