phoneuis/vmbx/inc/VmQueryLauncher.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Active object for asking vmbx number (if it's not defined) after
       
    15 *                the vmbx application has been fully constructed.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef VM_QUERY_LAUNCHER_H
       
    21 #define VM_QUERY_LAUNCHER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CVmContainer;
       
    28 
       
    29 /**
       
    30 *  MVmQueryLauncher
       
    31 *
       
    32 *  @lib vmbx.lib
       
    33 *
       
    34 **/
       
    35 NONSHARABLE_CLASS ( MVmQueryLauncher )
       
    36     {
       
    37     public:
       
    38         /**
       
    39         * query number completed
       
    40         **/
       
    41         virtual void NumberQueryComplete() = 0;
       
    42 
       
    43     };
       
    44 
       
    45 
       
    46 // CLASS DECLARATION
       
    47 
       
    48 /**
       
    49 *  CVmQueryLauncher
       
    50 *  ?other_description_lines
       
    51 *
       
    52 *  @lib ?library
       
    53 *  @since ?Series60_version
       
    54 */
       
    55 class CVmQueryLauncher : public CActive
       
    56     {
       
    57     public:  // Constructors and destructor
       
    58 
       
    59         /**
       
    60         * Two-phased constructor.
       
    61         *
       
    62         * @param aContainer VmContainer
       
    63         * @param aObserver observer for launching number
       
    64         * @param aPriority  Priority of CVmQueryLauncher
       
    65         */
       
    66         static CVmQueryLauncher* NewL( CVmContainer& aContainer, 
       
    67                                         MVmQueryLauncher& aObserver, 
       
    68                                 TInt aPriority = CActive::EPriorityStandard );
       
    69       
       
    70         /**
       
    71          * Destructor.
       
    72          */
       
    73         ~CVmQueryLauncher();
       
    74  
       
    75      protected:  // From CActive
       
    76 
       
    77         void RunL();
       
    78         void DoCancel();
       
    79      
       
    80      private:
       
    81         /**
       
    82         * C++ default constructors.
       
    83         *
       
    84         * @param aContainer VmContainer
       
    85         * @param aObserver observer for launching number
       
    86         * @param aPriority  Priority of CVmQueryLauncher
       
    87         */
       
    88         CVmQueryLauncher( CVmContainer& aContainer,
       
    89                          MVmQueryLauncher& aObserver, TInt aPriority );
       
    90      
       
    91      private:  // Data
       
    92         CVmContainer& iContainer;
       
    93 
       
    94         // Observer for AppUi to query number
       
    95         MVmQueryLauncher& iObserver;
       
    96     };
       
    97 
       
    98 #endif  // VM_QUERY_LAUNCHER_H
       
    99 
       
   100 // End of File