javatools/javacontrolpanel/controlpanel/javasrc/com/nokia/mj/impl/rt/javacontrolpanel/ApplicationInfoImpl.java
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
child 84 0553e2305d00
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
     1 /*
       
     2 * Copyright (c) 2010 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:
       
    15 *
       
    16 */
       
    17 
       
    18 package com.nokia.mj.impl.rt.javacontrolpanel;
       
    19 
       
    20 import com.nokia.mj.impl.rt.support.ApplicationInfo;
       
    21 import com.nokia.mj.impl.utils.Uid;
       
    22 
       
    23 /**
       
    24  * @author Nokia Corporation
       
    25  * @version 1.0
       
    26  */
       
    27 
       
    28 public class ApplicationInfoImpl extends ApplicationInfo
       
    29 {
       
    30     private String iProtectionDomain = null;
       
    31 
       
    32     /**
       
    33      */
       
    34     public String getRuntimeType()
       
    35     {
       
    36         // See runtime types defined in ApplicationInfo class.
       
    37         return "JavaControlPanel";
       
    38     }
       
    39 
       
    40     /**
       
    41      */
       
    42     public String getProtectionDomain()
       
    43     {
       
    44         return MANUFACTURER_DOMAIN;
       
    45     }
       
    46 
       
    47     /**
       
    48      */
       
    49     public Uid getUid()
       
    50     {
       
    51         return Uid.createUid("[2002FF61]");
       
    52     }
       
    53 
       
    54     /**
       
    55      */
       
    56     public Uid getSuiteUid()
       
    57     {
       
    58         throw new RuntimeException
       
    59         ("Get suite uid is not applicable for JavaControlPanel");
       
    60     }
       
    61 
       
    62     /**
       
    63      */
       
    64     public String getSuiteName()
       
    65     {
       
    66         return getName();
       
    67     }
       
    68 
       
    69     /**
       
    70      */
       
    71     public String getName()
       
    72     {
       
    73         return "JavaControlPanel";
       
    74     }
       
    75 
       
    76     /**
       
    77      */
       
    78     public String getVendor()
       
    79     {
       
    80         return "Nokia";
       
    81     }
       
    82 
       
    83     /**
       
    84      */
       
    85     public String getVersion()
       
    86     {
       
    87         return "1.0.0";
       
    88     }
       
    89 
       
    90     /**
       
    91      */
       
    92     public String getRootPath()
       
    93     {
       
    94         throw new RuntimeException
       
    95         ("getRootPath is not applicable for JavaControlPanel");
       
    96     }
       
    97 
       
    98     /**
       
    99      */
       
   100     public String getMainClass()
       
   101     {
       
   102         throw new RuntimeException
       
   103         ("Get main class is not applicable for JavaControlPanel");
       
   104     }
       
   105 
       
   106     /**
       
   107      */
       
   108     public String getAttribute(String key)
       
   109     {
       
   110         return null;
       
   111     }
       
   112 }