commonuisupport/uikon/coreinc/EIKEMBAL.H
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     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 __EIKEMBAL_H__
       
    17 #define __EIKEMBAL_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <f32file.h>
       
    21 #include <bamdesca.h>
       
    22 #include <apadef.h>
       
    23 #include <apaid.h>
       
    24 
       
    25 class CEikDocument;
       
    26 class CApaProcess;
       
    27 class RApaLsSession;
       
    28 
       
    29 
       
    30 /** Provides a list of all embeddable applications on the device. 
       
    31 
       
    32 Hidden applications are omitted from the list. The list is sorted by UID.
       
    33 
       
    34 @see TApaAppCapability::iAppIsHidden
       
    35 @publishedAll 
       
    36 @released */
       
    37 class CEikEmbeddableAppList : public CArrayFixFlat<TApaAppInfo>, public MDesCArray
       
    38 	{
       
    39 public:
       
    40 	IMPORT_C CEikEmbeddableAppList();
       
    41 	IMPORT_C ~CEikEmbeddableAppList();
       
    42 	IMPORT_C void ConstructL();
       
    43 	IMPORT_C void ConstructL(const TApaEmbeddabilityFilter& aFilter);
       
    44 	IMPORT_C CEikDocument* CreateEmbeddedDocumentL(TInt aIndex,CApaProcess* aProcess);
       
    45 private: // from MDesCArray
       
    46 	IMPORT_C TInt MdcaCount() const;
       
    47 	IMPORT_C TPtrC MdcaPoint(TInt aIndex) const;
       
    48 private: // Reserved methods
       
    49 	IMPORT_C virtual void CEikEmbeddableAppList_Reserved1();
       
    50 	IMPORT_C virtual void CEikEmbeddableAppList_Reserved2();
       
    51 private: // utility methods
       
    52 	TInt GetAppListL(const TApaEmbeddabilityFilter& aFilter);
       
    53 	TInt DoGetAppListL(RApaLsSession& aLs, const TApaEmbeddabilityFilter& aFilter);
       
    54 	void SortAppListL();
       
    55 private:
       
    56 	TInt iCEikEmbeddableAppList_Reserved1;
       
    57 	};
       
    58 
       
    59 #endif	// __EIKEMBAL_H__