phoneuis/ConnectUtil/inc/CCoUtlImplementation.h
changeset 0 5f000ab63145
child 9 8871b09be73b
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2003 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:  Implementation of connection termination plug-in.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCOUTLIMPLEMENTATION_H
       
    21 #define CCOUTLIMPLEMENTATION_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include    <CCoUtlInterface.h>
       
    25 #include    <ConeResLoader.h>
       
    26 
       
    27 // FORWARD DECLARATION
       
    28 class CCoUtlActive;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  CCoUtlInterface implementation.
       
    34 *
       
    35 *  @since 2.6
       
    36 */
       
    37 class CCoUtlImplementation 
       
    38     : public CCoUtlInterface
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41         
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         * @return an instance of CCoUtlImplementation.
       
    45         */
       
    46         static CCoUtlImplementation* NewL();
       
    47         
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CCoUtlImplementation();
       
    52 
       
    53     public: // Functions from base classes
       
    54 
       
    55         /**
       
    56         * @see CCoUtlInterface::CurrentState.
       
    57         */
       
    58         virtual TState CurrentState();
       
    59 
       
    60         /**
       
    61         * @see CCoUtlInterface::Terminate.
       
    62         */
       
    63         virtual void Terminate( TRequestStatus& aStatus );
       
    64     
       
    65         /**
       
    66         * @see CCoUtlInterface::Cancel.
       
    67         */
       
    68         virtual void Cancel();
       
    69 
       
    70     private:
       
    71 
       
    72         /**
       
    73         * C++ default constructor.
       
    74         */
       
    75         CCoUtlImplementation();
       
    76 
       
    77         /**
       
    78         * By default Symbian 2nd phase constructor is private.
       
    79         */
       
    80         void ConstructL();
       
    81 
       
    82     private:    // Data
       
    83 
       
    84         // Owned active object to do the task.
       
    85         CCoUtlActive* iActive;
       
    86 
       
    87         // Owned resource loader.
       
    88         RConeResourceLoader iResourceLoader;
       
    89 
       
    90     };
       
    91 
       
    92 #endif      // CCOUTLIMPLEMENTATION_H
       
    93             
       
    94 // End of File