williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __EIKEMBAL_H__ williamr@2: #define __EIKEMBAL_H__ williamr@2: williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: williamr@2: class CEikDocument; williamr@2: class CApaProcess; williamr@2: class RApaLsSession; williamr@2: williamr@2: williamr@2: /** Provides a list of all embeddable applications on the device. williamr@2: williamr@2: Hidden applications are omitted from the list. The list is sorted by UID. williamr@2: williamr@2: @see TApaAppCapability::iAppIsHidden williamr@2: @publishedAll williamr@2: @released */ williamr@2: class CEikEmbeddableAppList : public CArrayFixFlat, public MDesCArray williamr@2: { williamr@2: public: williamr@2: IMPORT_C CEikEmbeddableAppList(); williamr@2: IMPORT_C ~CEikEmbeddableAppList(); williamr@2: IMPORT_C void ConstructL(); williamr@2: IMPORT_C void ConstructL(const TApaEmbeddabilityFilter& aFilter); williamr@2: IMPORT_C CEikDocument* CreateEmbeddedDocumentL(TInt aIndex,CApaProcess* aProcess); williamr@2: private: // from MDesCArray williamr@2: IMPORT_C TInt MdcaCount() const; williamr@2: IMPORT_C TPtrC MdcaPoint(TInt aIndex) const; williamr@2: private: // Reserved methods williamr@2: IMPORT_C virtual void CEikEmbeddableAppList_Reserved1(); williamr@2: IMPORT_C virtual void CEikEmbeddableAppList_Reserved2(); williamr@2: private: // utility methods williamr@2: TInt GetAppListL(const TApaEmbeddabilityFilter& aFilter); williamr@2: TInt DoGetAppListL(RApaLsSession& aLs, const TApaEmbeddabilityFilter& aFilter); williamr@2: void SortAppListL(); williamr@2: private: williamr@2: TInt iCEikEmbeddableAppList_Reserved1; williamr@2: }; williamr@2: williamr@2: #endif // __EIKEMBAL_H__