javamanager/javabackup/midp2backup_usif/src.s60/javaapparcutil.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 09:48:13 +0300
branchRCL_3
changeset 60 6c158198356e
permissions -rw-r--r--
Revision: v2.2.9 Kit: 201033

/*
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "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:  CJavaApparcUtil definition.
*
*/


#ifndef JAVAAPPARCUTIL_H
#define JAVAAPPARCUTIL_H

#include <e32base.h>

namespace java
{
namespace backup
{
/**
 * Common utilities for Apparc registration.
 */
class CJavaApparcUtil : public CBase
{

public:

    /**
     * Creates a reasonably unique executable name, since the UI Framework
     * uses this as a key to look up the application opaque data.
     *
     * This name is not actually used to run the application, but it must
     * look reasonably like an acceptable file name.
     *
     * @param aAppUid Uid of the application
     * @param aAppName On return, it contains an unique executable name.
     * Maximum length of this descriptor should be >= 20 or the function
     * panics with USER 11.
     */
    static void inline AppName(const TUid aAppUid, TDes& aAppName);

};

} //namespace backup
} //namespace java

#include "javaapparcutil.inl"

#endif // JAVAAPPARCUTIL_H

// End of File