contentstorage/extinc/cahandlerengine.h
changeset 61 8e5041d13c84
parent 60 f62f87b200ec
child 66 32469d7d46ff
equal deleted inserted replaced
60:f62f87b200ec 61:8e5041d13c84
     1 /*
       
     2  * Copyright (c) 2008 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:  ?Description
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef C_CAHANDLERENGINE_H
       
    19 #define C_CAHANDLERENGINE_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class CCaHandler;
       
    24 class CCaInnerEntry;
       
    25 
       
    26 /**
       
    27  *  ?one_line_short_description
       
    28  *  ?more_complete_description
       
    29  *
       
    30  *  @code
       
    31  *   ?good_class_usage_example(s)
       
    32  *  @endcode
       
    33  *
       
    34  *  @lib ?library
       
    35  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    36  */
       
    37 NONSHARABLE_CLASS( CCaHandlerEngine ): public CBase
       
    38     {
       
    39 
       
    40 public:
       
    41     IMPORT_C static CCaHandlerEngine* NewL();
       
    42     IMPORT_C static CCaHandlerEngine* NewLC();
       
    43 
       
    44     /**
       
    45      * Destructor.
       
    46      */
       
    47     IMPORT_C virtual ~CCaHandlerEngine();
       
    48 
       
    49     /**
       
    50      * ?description
       
    51      *
       
    52      * @since S60 ?S60_version
       
    53      * @param ?arg1 ?description
       
    54      * @param ?arg2 ?description
       
    55      * @return ?description
       
    56      */
       
    57     IMPORT_C void HandleCommandL( CCaInnerEntry& aEntry,
       
    58             const TDesC8& aCommand );
       
    59 
       
    60 private:
       
    61 
       
    62     CCaHandlerEngine();
       
    63 
       
    64     void ConstructL();
       
    65 
       
    66     /**
       
    67      * Find loaded handler by type.
       
    68      * @param aType Type.
       
    69      * @return Loaded handler or NULL no handler is loaded for that type.
       
    70      */
       
    71     CCaHandler* FindHandler( const TDesC& aType );
       
    72 
       
    73     /**
       
    74      * Load handler for given type.
       
    75      * @param aType Type.
       
    76      * @return Loaded handler or NULL no handler is found for that type.
       
    77      */
       
    78     CCaHandler* LoadHandlerL( const TDesC& aType );
       
    79 
       
    80 private:
       
    81     // data
       
    82 
       
    83     /**
       
    84      * Array of Handlers.
       
    85      * Contents owned.
       
    86      */
       
    87     RPointerArray<CCaHandler> iHandlers;
       
    88 
       
    89     };
       
    90 
       
    91 #endif // C_CAHANDLERENGINE_H