--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cbs/cbsui/inc/ccbsuisettingsmonitor.h Fri Mar 19 09:40:14 2010 +0200
@@ -0,0 +1,106 @@
+/*
+* Copyright (c) 2010 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:
+*
+*/
+
+
+#ifndef CCBSUISETTINGSMONITOR_H
+#define CCBSUISETTINGSMONITOR_H
+
+// INCLUDES
+#include <E32BASE.H>
+#include <cbscommon.h>
+
+// FORWARD DECLARATIONS
+class MCbs;
+class CCbsUiappAppUi;
+class MCbsUiSettingsObserver;
+
+// CLASS DEFINITIONS
+
+
+/**
+* Server notifies this class if settings are changed.
+*
+*/
+class CCbsUiSettingsMonitor : public CActive
+ {
+ public: // New functions
+ /**
+ * Create an instance of the class.
+ *
+ * @param aServer cbs server
+ * @param aObserver settings observer
+ */
+ static CCbsUiSettingsMonitor* NewL(
+ MCbs& aServer , MCbsUiSettingsObserver& aObserver );
+
+ /**
+ * Destructor.
+ */
+ ~CCbsUiSettingsMonitor();
+
+ public: // From CActive
+
+ /**
+ * It is called when server notifies.
+ */
+ void RunL();
+
+ /**
+ * Cancels the request.
+ */
+ void DoCancel();
+
+ private: // New functions
+
+ /**
+ * Issues the request..
+ */
+ void IssueRequest();
+
+ private:
+
+ /**
+ * Constructor.
+ *
+ * @param aServer cbs server
+ */
+ CCbsUiSettingsMonitor(
+ MCbs& aServer, MCbsUiSettingsObserver& aObserver );
+
+ /**
+ * Finalizes the construction.
+ */
+ void ConstructL();
+
+ private: // Data
+
+ // ETrue if request is continued.
+ TBool iContinue;
+
+ // Server subsession for settings
+ MCbs& iServer;
+
+ // Event which is registered to server
+ TCbsSettingsEvent iEvent;
+
+ // Observer who is interested about settings changes.
+ MCbsUiSettingsObserver& iObserver;
+ };
+
+#endif // CCBSUISETTINGSMONITOR_H
+
+// End of File