localisation/apparchitecture/inc/apaidpartner.h
branchSymbian3
changeset 57 b8d18c84f71c
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __APAID_PARTNER_H__
       
    17 #define __APAID_PARTNER_H__
       
    18 
       
    19 #if !defined(__E32BASE_H__)
       
    20 #include <e32base.h>
       
    21 #endif
       
    22 #if !defined(__APADEF_H__)
       
    23 #include <apadef.h>
       
    24 #endif
       
    25 
       
    26 #include "apmstd.h"
       
    27 
       
    28 // classes referenced:
       
    29 class RReadStream;
       
    30 class RWriteStream;
       
    31 
       
    32 /**
       
    33 @internalTechnology
       
    34 @released 
       
    35 */
       
    36 IMPORT_C TPtrC NameApaServServerThread();
       
    37 
       
    38 
       
    39 /** 
       
    40 The uid for the Open service.
       
    41 
       
    42 @publishedPartner
       
    43 @released
       
    44 */
       
    45 const TUid KOpenServiceUid = { 0x10208DCA };
       
    46 
       
    47 /** Application service information.
       
    48 
       
    49 Encapsulates a service UID and associated opaque data.
       
    50 
       
    51 An instance of this class provides information about
       
    52 a specific implementation of the service identified by
       
    53 the encapsulated service UID.
       
    54 
       
    55 @publishedPartner
       
    56 @released
       
    57 */
       
    58 class TApaAppServiceInfo
       
    59 	{
       
    60 public:
       
    61 	IMPORT_C TApaAppServiceInfo();
       
    62 	IMPORT_C TApaAppServiceInfo(TUid aUid, CArrayFixFlat<TDataTypeWithPriority>* aDataTypes, HBufC8* aOpaqueData);
       
    63 	IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
       
    64 	IMPORT_C void InternalizeL(RReadStream& aStream);
       
    65 	IMPORT_C void Release();
       
    66 	IMPORT_C CArrayFixFlat<TDataTypeWithPriority>& DataTypes();
       
    67 	IMPORT_C TUid Uid() const;
       
    68 	IMPORT_C const CArrayFixFlat<TDataTypeWithPriority>& DataTypes() const;
       
    69 	IMPORT_C const TDesC8& OpaqueData() const;
       
    70 private:
       
    71 	TUid iUid;
       
    72 	CArrayFixFlat<TDataTypeWithPriority>* iDataTypes;
       
    73 	HBufC8* iOpaqueData;
       
    74 	TInt iTApaAppServiceInfo;
       
    75 	};
       
    76 
       
    77 /** Application service information array.
       
    78 
       
    79 Owns an array of TApaAppServiceInfo objects.
       
    80 
       
    81 @see TApaAppServiceInfo
       
    82 @publishedPartner
       
    83 @released
       
    84 */
       
    85 class CApaAppServiceInfoArray : public CBase
       
    86 	{
       
    87 protected:
       
    88 	IMPORT_C CApaAppServiceInfoArray();
       
    89 public:
       
    90 	/** Provides access to the encapsulated array of
       
    91 	TApaAppServiceInfo objects.
       
    92 
       
    93 	@return A generic array of TApaAppServiceInfo objects. */
       
    94 	virtual TArray<TApaAppServiceInfo> Array()=0;
       
    95 private:
       
    96 	IMPORT_C virtual void CApaAppServiceInfoArray_Reserved1();
       
    97 	IMPORT_C virtual void CApaAppServiceInfoArray_Reserved2();
       
    98 private:
       
    99 	TInt iCApaAppServiceInfoArray_Reserved1;
       
   100 	};
       
   101 
       
   102 #endif