gssettingsuis/Gs/GSApplication/Inc/GSDocument.h
branchRCL_3
changeset 25 7e0eff37aedb
parent 0 8c5d936e5675
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gssettingsuis/Gs/GSApplication/Inc/GSDocument.h	Wed Sep 01 12:20:44 2010 +0100
@@ -0,0 +1,86 @@
+/*
+* Copyright (c) 2002-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:  Document class required by Symbian OS architecture.
+*
+*/
+
+
+#ifndef GSDOCUMENT_H
+#define GSDOCUMENT_H
+
+// INCLUDES
+#include <AknDoc.h>
+#include "GSBaseDocument.h"
+
+// CONSTANTS
+
+// FORWARD DECLARATIONS
+class  CEikAppUi;
+class  CGSModelCdma;
+
+// CLASS DECLARATION
+
+/**
+*  CGSDocument application class.
+*  @since Series60_3.1
+*/
+class CGSDocument : public CGSBaseDocument
+    {
+    public: // Constructor and destructor
+        /**
+        * Two-phased constructor
+        * @param aApp Application.
+        * @return GS document.
+        */
+        static CGSDocument* NewL(CEikApplication& aApp);
+
+        ~CGSDocument();
+
+    public: // New
+
+        /**
+        * Returns pointer to GS's CDMA model which is owned by the document.
+        * @return GS CDMA model.
+        */
+        CGSModelCdma* ModelCdma();
+
+    private:
+
+        /**
+        * C++ constructor
+        */
+        inline CGSDocument( CEikApplication& aApp ) : CGSBaseDocument( aApp ) { }
+
+        /**
+        * Symbian OS default constructor.
+        *
+        */
+        void ConstructL();
+
+    private: // From CEikDocument
+
+        /**
+        * Create CGSUi "App UI" object.
+        * @return Eikon application UI.
+        */
+        CEikAppUi* CreateAppUiL();
+
+    private: // Data
+
+        // CDMA model
+        CGSModelCdma* iModelCdma;
+    };
+
+#endif // GSDOCUMENT_H
+// End of File