devicesrv_plat/accessory_policy_utility_api/inc/AccConGenericID.h
changeset 0 4e1aa6a622a0
child 34 b2f9f823b5fb
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:  Public API class of the heap-allocated Generic ID, 
       
    15 *                which provides means to describe, detect, connect and control 
       
    16 *                an enhancement without need to use HW and/or provider 
       
    17 *                specific definitions.
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef CACCCONGENERICID_H
       
    23 #define CACCCONGENERICID_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include <accpolgenericid.h>
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 // FUNCTION PROTOTYPES
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  Heap-allocated Generic ID class definition to be used in accessory connect and update.
       
    42 *
       
    43 *  @lib AccControl.lib
       
    44 *  @since S60 3.1
       
    45 */
       
    46 class CAccConGenericID : public CBase
       
    47     {
       
    48     public:  // Constructors and destructor
       
    49         
       
    50         /**
       
    51         * Two-phased constructor.
       
    52         */
       
    53         IMPORT_C static CAccConGenericID* NewL();
       
    54         
       
    55         /**
       
    56         * Destructor.
       
    57         */
       
    58         IMPORT_C virtual ~CAccConGenericID();
       
    59 
       
    60     public: // New functions
       
    61         
       
    62         /**
       
    63         * Get Generic ID header.
       
    64         *
       
    65         * @since S60 3.1
       
    66         * @return Generic ID header.
       
    67         */
       
    68         IMPORT_C TAccPolGenericID GenericID() const;
       
    69 
       
    70     public: // Functions from base classes
       
    71         
       
    72     protected:  // New functions
       
    73 
       
    74     protected:  // Functions from base classes
       
    75 
       
    76     private:
       
    77 
       
    78         /**
       
    79         * C++ default constructor.
       
    80         */
       
    81         CAccConGenericID();
       
    82 
       
    83         /**
       
    84         * By default Symbian 2nd phase constructor is private.
       
    85         */
       
    86         void ConstructL();
       
    87 
       
    88     public:     // Data
       
    89     
       
    90     protected:  // Data
       
    91 
       
    92     private:    // Data
       
    93     
       
    94         // Instance of Generic ID static attribute data structure
       
    95         TAccPolGenericID iGenericID;
       
    96         
       
    97         //Storage buffer for capability data
       
    98         CBufFlat* iNameValueBuf;//Owned
       
    99 
       
   100     public:     // Friend classes
       
   101         
       
   102     protected:  // Friend classes
       
   103         
       
   104     private:    // Friend classes
       
   105         friend class TAccPolGenericIDAccessor;    
       
   106     };
       
   107 
       
   108 #endif      // CACCCONGENERICID_H   
       
   109             
       
   110 // End of File