smartinstaller/adm/inc/ADMglobalqueryobserver.h
branchADM
changeset 48 364021cecc90
equal deleted inserted replaced
47:3f419852be07 48:364021cecc90
       
     1 /*
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *     Declares CGlobalQueryObserver class for application.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef __BOOTSTRAPGLOBALQUERYOBSERVER_H__
       
    22 #define __BOOTSTRAPGLOBALQUERYOBSERVER_H__
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 
       
    28 class CADMAppUi;
       
    29 
       
    30 /**
       
    31 * CGlobalQueryObserver class
       
    32 */
       
    33 class CGlobalQueryObserver:
       
    34 	public CActive
       
    35 	{
       
    36 	public:  // Constructors and destructor
       
    37 		/**
       
    38 		* NewL
       
    39 		* Two-phased constructor.
       
    40 		*/
       
    41 		static CGlobalQueryObserver* NewL(CADMAppUi* aCBootstrapAppUiObj);
       
    42 
       
    43 		/**
       
    44 		* ~CGlobalQueryObserver
       
    45 		* Destructor.
       
    46 		*/
       
    47 		virtual ~CGlobalQueryObserver();
       
    48 
       
    49 	public:     // New function
       
    50 		/**
       
    51 		* Start
       
    52 		* Start the activator.
       
    53 		*/
       
    54 		void Start();
       
    55 
       
    56 		/*
       
    57 		* SetSelectItemFlag
       
    58 		* Set iSelectItemFlag.
       
    59 		*/
       
    60 		void SetSelectItemFlag();
       
    61 
       
    62 		/*
       
    63 		* UnsetSelectItemFlag
       
    64 		* Unset iSelectItemFlag.
       
    65 		*/
       
    66 		void UnsetSelectItemFlag();
       
    67 
       
    68 	private:    // New function
       
    69 		/**
       
    70 		* CGlobalQueryObserver
       
    71 		* C++ default constructor.
       
    72 		*/
       
    73 		CGlobalQueryObserver(CADMAppUi* aCBootstrapAppUiObj);
       
    74 
       
    75 		/**
       
    76 		* ConstructL
       
    77 		* Symbian default constructor.
       
    78 		*/
       
    79 		void ConstructL();
       
    80 
       
    81 	private:    // From CActive
       
    82 		/**
       
    83 		* RunL
       
    84 		* From CActive, handle an event.
       
    85 		*/
       
    86 		void RunL();
       
    87 
       
    88 		/**
       
    89 		* DoCancel
       
    90 		* From CActive, implement the Cancel protocol.
       
    91 		*/
       
    92 		void DoCancel();
       
    93 
       
    94 	private: // Data
       
    95 		/**
       
    96 		* iSelectItemFlag
       
    97 		*/
       
    98 		TBool iSelectItemFlag;
       
    99 
       
   100 		/**
       
   101 		*Call Back
       
   102 		*/
       
   103 		CADMAppUi* iCBootstrapAppUiObj;
       
   104 	};
       
   105 
       
   106 #endif // __BOOTSTRAPGLOBALQUERYOBSERVER_H__
       
   107