javacommons/comms/inc/comms.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     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:  This file acts as reservation table for comms addresses,
       
    15 *                module and message ids.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef COMMS_H
       
    20 #define COMMS_H
       
    21 
       
    22 namespace java
       
    23 {
       
    24 namespace comms
       
    25 {
       
    26 
       
    27 /**
       
    28 * Defines the 'well-known' names for server endpoints.
       
    29 */
       
    30 const int IPC_ADDRESS_JAVA_CAPTAIN_C               = 10000;
       
    31 const int IPC_ADDRESS_JAVA_REGISTRY_C              = 10100;
       
    32 const int IPC_ADDRESS_JAVA_STORAGE_C               = 10200;
       
    33 const int IPC_ADDRESS_JAVA_TCK_RUNNER_C            = 10300;
       
    34 const int IPC_ADDRESS_JAVA_PREINSTALLER_C          = 10400;
       
    35 const int IPC_ADDRESS_JAVA_APPCONVERTER_C          = 10500;
       
    36 const int IPC_ADDRESS_JAVA_STORAGE_PLUGIN_C        = 10600;
       
    37 const int IPC_ADDRESS_JAVA_DEBUGAPI_C              = 10700;
       
    38 const int IPC_ADDRESS_JAVA_STARTSCREEN_SERVER_C    = 10900;
       
    39 const int IPC_ADDRESS_JAVA_SIF_PLUGIN_C            = 11000;
       
    40 const int IPC_ADDRESS_JAVA_INSTALLER_SERVER_C      = 11100;
       
    41 
       
    42 /**
       
    43 * Defines available module ids.
       
    44 *
       
    45 * Module id identifies to which component message belongs.
       
    46 * Module id is used when registering listeners.
       
    47 */
       
    48 const int PLUGIN_ID_SAMPLE_C                      = 0;
       
    49 const int PLUGIN_ID_RTC_C                         = 1;
       
    50 const int PLUGIN_ID_RMS_C                         = 2;
       
    51 const int PLUGIN_ID_PUSH_REGISTRY_C               = 3;
       
    52 const int PLUGIN_ID_PUSH_CONTROLLER_C             = 4;
       
    53 const int PLUGIN_ID_JAVASTORAGE_CLIENT_C          = 5;
       
    54 const int PLUGIN_ID_AMC_C                         = 6;
       
    55 const int PLUGIN_ID_JAVA_CERT_STORE_EXTENSION_C   = 7;
       
    56 const int PLUGIN_ID_JAVA_CERT_STORE_ECOM_C        = 8;
       
    57 const int PLUGIN_ID_PMC_C                         = 9;
       
    58 const int PLUGIN_ID_SIGNAL_C                      = 10;
       
    59 const int PLUGIN_ID_MMC_EXTENSION_C               = 11;
       
    60 const int PLUGIN_ID_RTC_PUSH_C                    = 12;
       
    61 const int PLUGIN_ID_JAVACAPTAIN_CORE_C            = 13;
       
    62 const int PLUGIN_ID_DRIVE_OBSERVER_NATIVE_C       = 50;
       
    63 const int PLUGIN_ID_DRIVE_OBSERVER_JAVA_C         = 51;
       
    64 const int PLUGIN_ID_JAVACAPTAIN_TESTER_C          = 100;
       
    65 const int PLUGIN_ID_JAVACAPTAIN_COMMS_TESTER_C    = 101;
       
    66 const int PLUGIN_ID_CERT_STORE_PLUGIN_TESTER_C    = 102;
       
    67 const int PLUGIN_ID_PUSH_TESTER_C                 = 103;
       
    68 const int PLUGIN_ID_BT_DEVICE_CLASS_MANAGER_C     = 200;
       
    69 
       
    70 //const int PLUGIN_ID_XYZ_C                       = 8;
       
    71 
       
    72 
       
    73 /**
       
    74 * Message id ranges
       
    75 */
       
    76 const int IPCLIB_MESSAGE_ID_RANGE_START_C           = 0;
       
    77 const int IPCLIB_MESSAGE_ID_RANGE_END_C             = 9;
       
    78 
       
    79 const int COMMS_MESSAGE_ID_RANGE_START_C            = 10;
       
    80 const int COMMS_MESSAGE_ID_RANGE_END_C              = 19;
       
    81 
       
    82 const int JAVACOMMS_MESSAGE_ID_RANGE_START_C        = 20;
       
    83 const int JAVACOMMS_MESSAGE_ID_RANGE_END_C          = 29;
       
    84 
       
    85 const int JSR_82_MESSAGE_ID_RANGE_START_C           = 30;
       
    86 const int JSR_82_MESSAGE_ID_RANGE_END_C             = 31;
       
    87 
       
    88 const int JAVACAPTAIN_MESSAGE_ID_RANGE_START_C      = 100;
       
    89 const int JAVACAPTAIN_MESSAGE_ID_RANGE_END_C        = 299;
       
    90 
       
    91 const int JAVACAPTAIN_PUSH_REGISTRY_RANGE_START_C   = 300;
       
    92 const int JAVACAPTAIN_PUSH_REGISTRY_RANGE_END_C     = 399;
       
    93 
       
    94 const int JAVASTORAGE_MESSAGE_ID_RANGE_START_C      = 400;
       
    95 const int JAVASTORAGE_MESSAGE_ID_RANGE_END_C        = 499;
       
    96 
       
    97 // note that preinstaller and appconverter use same messages as TCK Runner
       
    98 const int TCK_RUNNER_MESSAGE_ID_RANGE_START_C       = 500;
       
    99 const int TCK_RUNNER_MESSAGE_ID_RANGE_END_C         = 599;
       
   100 
       
   101 const int JAVAINSTALLER_MESSAGE_ID_RANGE_START_C    = 600;
       
   102 const int JAVAINSTALLER_MESSAGE_ID_RANGE_END_C      = 699;
       
   103 
       
   104 //const int JSR_XYZ_MESSAGE_ID_RANGE_START_C        = 700;
       
   105 //const int JSR_XYZ_MESSAGE_ID_RANGE_END_C          = 799;
       
   106 
       
   107 } // namespace comms
       
   108 } // namespace java
       
   109 
       
   110 #endif // COMMS_H