javaextensions/midppush/inc/pushconstant.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 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 
       
    19 #ifndef PUSHCONSTANT_H
       
    20 #define PUSHCONSTANT_H
       
    21 
       
    22 namespace java
       
    23 {
       
    24 namespace push
       
    25 {
       
    26 //Two weeks long period in milliseconds.
       
    27 const long long TWO_WEEKS_IN_MILLI_SECS = 1209601000LL;
       
    28 
       
    29 //Maximum time when is no sense to initialize timer. This is used in the following check:
       
    30 //newAlarmTime > (currentTime + NO_NEED_TO_INITIALZE_TIMER_TIME_IN_MILLI_SECS).
       
    31 const long long NO_NEED_TO_INITIALZE_TIMER_TIME_IN_MILLI_SECS = 300LL;
       
    32 
       
    33 //Timeout value for sendReceive() comms method.
       
    34 const int COMMS_TIMEOUT = 15; //15 sec.
       
    35 
       
    36 const char PREFIX_OF_SRV_CONN_PLUGIN[] = "java";
       
    37 const char SUFFIX_OF_SRV_CONN_PLUGIN[] = "scplugin";
       
    38 
       
    39 enum EPushInfoQueryParams
       
    40 {
       
    41     FILTER_OF_PUSH_CONN = 0x1,
       
    42     CLASSNAME_OF_PUSH_CONN = 0x2
       
    43 };
       
    44 
       
    45 const int UNDEFINED_MEDIA_ID = -2;
       
    46 const int MEDIA_ID_IN_LINUX  = -1;
       
    47 
       
    48 //Timeout value for "push connection unregistered" response
       
    49 //in the case wherein push connection is unregistered from other MIDlet.
       
    50 const unsigned int TIMEOUT_VALUE_FOR_UNREG_RESPONSE = 5; //5 sec
       
    51 
       
    52 }//end namespace push
       
    53 }//end namespace java
       
    54 
       
    55 #endif // PUSHCONSTANT_H