common/tools/ats/smoketest/localisation/apparchitecture/apparc/APADLL.H
author victorp@symbian.org
Wed, 03 Feb 2010 16:06:24 +0000
changeset 872 17498133d9ad
parent 793 0c32c669a39d
permissions -rw-r--r--
adding EPL headers to smoke test

// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#ifndef __APADLL_H__
#define __APADLL_H__

#if !defined(__E32STD_H__)
#include <e32std.h>
#endif
#if !defined(__E32BASE_H__)
#include <e32base.h>
#endif
#if !defined(__APADEF_H__)
#include <apadef.h>
#endif
#if !defined(__APPARC_H__)
#include <apparc.h>
#endif


// classes referenced
class CApaApplication;
class RFs;

NONSHARABLE_CLASS(CApaAppHolder) : public CBase
/** Provides an interface for obtaining data gathered differently for DLLs and EXEs. Derived
classes create and own the application object. The equivalent of the old CApaDll derives from this.*/
{
public:
	CApaAppHolder();
	~CApaAppHolder();

	virtual TFileName FileName() const = 0;
	virtual TUid Uid() const = 0;
	virtual CApaApplication* Application() const = 0;

protected:
	void UpdateAppsRefToThis();
};

NONSHARABLE_CLASS(CApaExe) : public CApaAppHolder
	{
public:
	CApaExe();
	~CApaExe();

	TFileName FileName() const;
	TUid Uid() const;
	CApaApplication* Application() const;

	void CreateApplicationL(TApaApplicationFactory aApplicationFactory); // Uses the factory to create the application
private:
	CApaApplication* iApplication;
	HBufC* iAppName;
	TUid iFileUid;
	};

#endif