services/terminalmodeservice_plat/inc/terminalmodeconsts.h
author hgs
Fri, 03 Sep 2010 09:13:04 +0300
changeset 31 b51a6f4f15ba
parent 24 e9457ebcc4df
permissions -rw-r--r--
201035
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24
hgs
parents:
diff changeset
     1
/**
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description: Class defines all the error codes related to Terminal Mode Service
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef __TERMINALMODECONSTS_H__
hgs
parents:
diff changeset
    19
#define __TERMINALMODECONSTS_H__
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
/**
hgs
parents:
diff changeset
    22
 * Error codes for Terminal Mode extention 
hgs
parents:
diff changeset
    23
 * These error codes are located in the non-standard error code range 
hgs
parents:
diff changeset
    24
 * (800 – 899).
hgs
parents:
diff changeset
    25
 */
hgs
parents:
diff changeset
    26
enum TTerminalModeErrorCode
hgs
parents:
diff changeset
    27
    {
hgs
parents:
diff changeset
    28
    /**
hgs
parents:
diff changeset
    29
     * Terminal Mode success error code.
hgs
parents:
diff changeset
    30
     * Represents the no-error condition.
hgs
parents:
diff changeset
    31
     */
hgs
parents:
diff changeset
    32
    ETerminalModeSuccess = 200,
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
    /**
hgs
parents:
diff changeset
    35
     * Terminal Mode failure error code.
hgs
parents:
diff changeset
    36
     * Represents the error condition.
hgs
parents:
diff changeset
    37
     */
hgs
parents:
diff changeset
    38
    ETerminalModeFailure = 201,
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
    /**
hgs
parents:
diff changeset
    41
     *Terminal Mode error range marker.
hgs
parents:
diff changeset
    42
     */
hgs
parents:
diff changeset
    43
    ETerminalModeErrorRangeBegin = 700,
hgs
parents:
diff changeset
    44
hgs
parents:
diff changeset
    45
    /**
hgs
parents:
diff changeset
    46
     * Operation Rejected. 
hgs
parents:
diff changeset
    47
     * Terminal Mode Server rejected the operation.
hgs
parents:
diff changeset
    48
     */
hgs
parents:
diff changeset
    49
    ETerminalModeOperationRejected = 701,
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
    /**
hgs
parents:
diff changeset
    52
     * Malformed or Non-existent AppID.
hgs
parents:
diff changeset
    53
     * The AppID is of incorrect format or does not exist.
hgs
parents:
diff changeset
    54
     */
hgs
parents:
diff changeset
    55
    ETerminalModeBadAppId = 810,
hgs
parents:
diff changeset
    56
hgs
parents:
diff changeset
    57
    /**
hgs
parents:
diff changeset
    58
     * Unauthorized AppID.
hgs
parents:
diff changeset
    59
     * The application identified by this AppID cannot be used remotely.
hgs
parents:
diff changeset
    60
     */
hgs
parents:
diff changeset
    61
    ETerminalModeUnauthorizedApp = 811,
hgs
parents:
diff changeset
    62
hgs
parents:
diff changeset
    63
    /**
hgs
parents:
diff changeset
    64
     * Cannot determine application status.
hgs
parents:
diff changeset
    65
     * The status of the application cannot be cur-rently determined. 
hgs
parents:
diff changeset
    66
     * Client should try again later.
hgs
parents:
diff changeset
    67
     */
hgs
parents:
diff changeset
    68
    ETerminalModeAppStatusError = 812,
hgs
parents:
diff changeset
    69
hgs
parents:
diff changeset
    70
    /**
hgs
parents:
diff changeset
    71
     * Failed to launch application.
hgs
parents:
diff changeset
    72
     * The application is available on the mobile device but failed 
hgs
parents:
diff changeset
    73
     * to launch.
hgs
parents:
diff changeset
    74
     */
hgs
parents:
diff changeset
    75
    ETerminalModeAppLaunchError = 813,
hgs
parents:
diff changeset
    76
        
hgs
parents:
diff changeset
    77
    /**
hgs
parents:
diff changeset
    78
     * The requested application resource is busy.
hgs
parents:
diff changeset
    79
     * This error can occur when the resource is already busy and 
hgs
parents:
diff changeset
    80
     * resourceStatus in the AppListing is set equal to “NA”.
hgs
parents:
diff changeset
    81
     */
hgs
parents:
diff changeset
    82
    ETerminalModeResourceBusy = 814,
hgs
parents:
diff changeset
    83
        
hgs
parents:
diff changeset
    84
    
hgs
parents:
diff changeset
    85
    /**
hgs
parents:
diff changeset
    86
     * Failed to process the action as the device hosting the TmApplicationServer 
hgs
parents:
diff changeset
    87
     * service is locked
hgs
parents:
diff changeset
    88
     */
hgs
parents:
diff changeset
    89
    ETerminalModeDeviceLocked = 815,
hgs
parents:
diff changeset
    90
    
hgs
parents:
diff changeset
    91
    /**
hgs
parents:
diff changeset
    92
     * Failed to process the action as the input argument passed is invalid
hgs
parents:
diff changeset
    93
     */
hgs
parents:
diff changeset
    94
    ETerminalModeInvalidArgument = 820,
hgs
parents:
diff changeset
    95
        
hgs
parents:
diff changeset
    96
    /**
hgs
parents:
diff changeset
    97
     * The clientProfile argument passed does not conform to A_ARG_TYPE_ClientProfile
hgs
parents:
diff changeset
    98
     * XML specifications.
hgs
parents:
diff changeset
    99
     */
hgs
parents:
diff changeset
   100
    ETerminalModeInvalidProfile = 825,
hgs
parents:
diff changeset
   101
    
hgs
parents:
diff changeset
   102
    /**
hgs
parents:
diff changeset
   103
     * Failed to process the action as the the profile identifier does not exist 
hgs
parents:
diff changeset
   104
     * or the application cannot use the specified profile identifier.
hgs
parents:
diff changeset
   105
     */
hgs
parents:
diff changeset
   106
    ETerminalModeInvalidProfileId = 830,
hgs
parents:
diff changeset
   107
    
hgs
parents:
diff changeset
   108
    /**
hgs
parents:
diff changeset
   109
     * Invalid license.The HU does not have valid license or has not started license 
hgs
parents:
diff changeset
   110
     * verification process for the service.
hgs
parents:
diff changeset
   111
     */
hgs
parents:
diff changeset
   112
    ETerminalModeInvalidLicense = 891,
hgs
parents:
diff changeset
   113
    /**
hgs
parents:
diff changeset
   114
     * Terminal Mode error range marker.
hgs
parents:
diff changeset
   115
     */
hgs
parents:
diff changeset
   116
    ETerminalModeErrorRangeEnd = 899
hgs
parents:
diff changeset
   117
    };
hgs
parents:
diff changeset
   118
hgs
parents:
diff changeset
   119
#endif // __TERMINALMODECONSTS_H__