javamanager/javabackup/midp2backup_usif/src.s60/javaapparcutil.h
branchRCL_3
changeset 60 6c158198356e
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  CJavaApparcUtil definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef JAVAAPPARCUTIL_H
       
    20 #define JAVAAPPARCUTIL_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 namespace java
       
    25 {
       
    26 namespace backup
       
    27 {
       
    28 /**
       
    29  * Common utilities for Apparc registration.
       
    30  */
       
    31 class CJavaApparcUtil : public CBase
       
    32 {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Creates a reasonably unique executable name, since the UI Framework
       
    38      * uses this as a key to look up the application opaque data.
       
    39      *
       
    40      * This name is not actually used to run the application, but it must
       
    41      * look reasonably like an acceptable file name.
       
    42      *
       
    43      * @param aAppUid Uid of the application
       
    44      * @param aAppName On return, it contains an unique executable name.
       
    45      * Maximum length of this descriptor should be >= 20 or the function
       
    46      * panics with USER 11.
       
    47      */
       
    48     static void inline AppName(const TUid aAppUid, TDes& aAppName);
       
    49 
       
    50 };
       
    51 
       
    52 } //namespace backup
       
    53 } //namespace java
       
    54 
       
    55 #include "javaapparcutil.inl"
       
    56 
       
    57 #endif // JAVAAPPARCUTIL_H
       
    58 
       
    59 // End of File