Example Application Guide

- Main Page
- Classes
- Files

# geoprofileeditor.h

    00001 /*
    00002 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
    00003 * All rights reserved.
    00004 * This component and the accompanying materials are made available
    00005 * under the terms of the License "Eclipse Public License v1.0"
    00006 * which accompanies this distribution, and is available
    00007 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    00008 *
    00009 * Initial Contributors:
    00010 * Nokia Corporation - initial contribution.
    00011 *
    00012 * Contributors:
    00013 *
    00014 * Description:  Geo Profile Editor
    00015 *
    00016 */
    00017
    00018
    00019 #ifndef C_GEOPROFILEEDITOR_H
    00020 #define C_GEOPROFILEEDITOR_H
    00021
    00022 // SYSTEM INCLUDES
    00023 #include <e32base.h>
    00024 #include <AknForm.h>
    00025
    00026 // USER INCLUDE
    00027 #include "geoprofile.h"
    00028
    00029 // FORWARD DECLARATIONS
    00030 class CAknInformationNote;
    00031
    00032 /**
    00033  * Geo Profile Editor
    00034  */
    00035 class CGeoProfileEditor : public CAknForm
    00036     {
    00037 public:
    00038     /**
    00039      * Constructs a new instance of CGeoProfile Entry.
    00040      */
    00041     static CGeoProfileEditor* NewL( CGeoProfile&      aGeoProfile );
    00042
    00043     /**
    00044      * C++ Destructor.
    00045      * Frees all the resources
    00046      */
    00047     virtual ~CGeoProfileEditor();
    00048
    00049 public:
    00050     /*
    00051      * Inherited from CEikDialog
    00052      */
    00053     TInt ExecuteLD();
    00054
    00055 private:
    00056     /**
    00057      * Inherited from CEikDialog
    00058      */
    00059     TBool OkToExitL( TInt aButtonId );
    00060
    00061     /**
    00062      * Inherited from CEikDialog
    00063      */
    00064     void PreLayoutDynInitL();
    00065
    00066     /**
    00067      * Inherited from CAknDialog
    00068      */
    00069     void LineChangedL( TInt  aControlId );
    00070
    00071     /**
    00072      * Inherited from CAknForm
    00073      */
    00074     void HandleControlStateChangeL( TInt aControlId );
    00075
    00076     /**
    00077      * Inherited from CCoeControl
    00078      */
    00079     void HandlePointerEventL( const TPointerEvent& aPointerEvent );
    00080
    00081 private: // Initialization functions
    00082
    00083     /**
    00084      * Default Constructor
    00085      */
    00086     CGeoProfileEditor( CGeoProfile&      aGeoProfile );
    00087
    00088     /**
    00089      * Second phase of two phase constructor
    00090      */
    00091     void ConstructL();
    00092
    00093     /**
    00094      * Loads all the Values
    00095      */
    00096     void LoadFormValuesL();
    00097
    00098     /**
    00099      * Set the Title text
    00100      */
    00101     void MakeTitleL( TDesC& aText );
    00102
    00103     /**
    00104      * Loads place
    00105      */
    00106     void LoadPlaceL();
    00107
    00108     /**
    00109      * Loads the profile name
    00110      */
    00111     void LoadProfileL();
    00112
    00113     /**
    00114      * Loads the Trigger Type
    00115      */
    00116     void LoadTriggerTypeL();
    00117
    00118     /**
    00119      * Process Profile Selector Command
    00120      */
    00121     void HandleProfileSelectionL();
    00122
    00123     /**
    00124      * Process Place selection command
    00125      */
    00126     void HandlePlaceSelectionL();
    00127
    00128     /**
    00129      *
    00130      */
    00131     TInt CheckIfSavableL();
    00132
    00133 private:
    00134     /**
    00135      * Reference to a Geo Profile
    00136      */
    00137     CGeoProfile&                iGeoProfile;
    00138
    00139     /**
    00140      * Temporary Geo Profile object
    00141      */
    00142     CGeoProfile*                iNewGeoProfile;
    00143
    00144     /**
    00145      *
    00146      */
    00147     TInt                        iSelectedPlace;
    00148
    00149     CAknInformationNote*        iInfoNote;
    00150
    00151     };
    00152
    00153 #endif // C_GEOPROFILEEDITOR_H

© Nokia 2009 |