accessoryservices/accessoryserver/inc/Server/AccSrvModeHandler.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  Accessory Mode handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CACCSRVMODEHANDLER_H
       
    21 #define CACCSRVMODEHANDLER_H
       
    22 
       
    23 // INCLUDE FILES
       
    24 #include "AccSrvHandlerBase.h"
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class MAccSrvConnectionControllerObserver;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *  Starts asunchronous Accessory Mode update.
       
    41 *
       
    42 *  @lib AccServer.lib
       
    43 *  @since S60 3.1
       
    44 */
       
    45 NONSHARABLE_CLASS( CAccSrvModeHandler ) : public CAccSrvHandlerBase
       
    46     {
       
    47     public:  // Constructors and destructor
       
    48 
       
    49         /**
       
    50         * Two-phased constructor.
       
    51         */
       
    52         static CAccSrvModeHandler* NewL( MAccSrvConnectionControllerObserver* aCallback );
       
    53 
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         virtual ~CAccSrvModeHandler();
       
    58 
       
    59     public: // New functions
       
    60 
       
    61     public: // Functions from base classes
       
    62 
       
    63     protected:  // New functions
       
    64 
       
    65     protected:  // Functions from base classes
       
    66 
       
    67         /**
       
    68         * Handles an active object's request completion event.
       
    69         *
       
    70         * @since S60 3.1
       
    71         * @return void
       
    72         */
       
    73         void RunL();
       
    74 
       
    75     private:
       
    76 
       
    77         /**
       
    78         * C++ default constructor.
       
    79         */
       
    80         CAccSrvModeHandler( MAccSrvConnectionControllerObserver* aCallback );
       
    81 
       
    82         /**
       
    83         * By default Symbian 2nd phase constructor is private.
       
    84         */
       
    85         void ConstructL();
       
    86 
       
    87     public:     // Data
       
    88 
       
    89     protected:  // Data
       
    90 
       
    91     private:    // Data
       
    92 
       
    93     public:     // Friend classes
       
    94 
       
    95     protected:  // Friend classes
       
    96 
       
    97     private:    // Friend classes
       
    98 
       
    99 };
       
   100 
       
   101 #endif      // CACCSRVMODEHANDLER_H
       
   102 
       
   103 // End of File