cbsref/telephonyrefplugins/atltsy/atcommand/generic/inc/ltsycommondefine.h
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
child 21 4814c5a49428
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This contains common defination
       
    15 // 
       
    16 
       
    17 #ifndef LTSYCOMMONDEFINE_H_
       
    18 #define LTSYCOMMONDEFINE_H_
       
    19 
       
    20 // system include
       
    21 #include <e32std.h>
       
    22 
       
    23 /**
       
    24  * Define the IO event
       
    25  * 
       
    26  */
       
    27 enum TAtEventSource
       
    28 	{
       
    29 	EReadCompletion,
       
    30 	EWriteCompletion,
       
    31 	ETimeoutCompletion
       
    32 	};
       
    33 
       
    34 /**
       
    35 * The default maximum time in which Writing an AT command must be complete
       
    36 * 5 seconds
       
    37 */
       
    38 const TInt KLtsyDefaultWriteTimeOut = 5;
       
    39 
       
    40 /**
       
    41 * The default maximum time in which The response from baseband must be received 
       
    42 * 10 seconds
       
    43 */
       
    44 const TInt KLtsyDefaultReadTimeOut = 20;
       
    45 
       
    46 /**
       
    47 * The invalid call ID
       
    48 */
       
    49 const TInt KLtsyErrorCallId = -1;
       
    50 
       
    51 /**
       
    52  * The minimum call id
       
    53  * 
       
    54  */
       
    55 const TInt KLtsyMinCallId = 1;
       
    56 
       
    57 /**
       
    58  * The maximal call id
       
    59  * 
       
    60  */
       
    61 const TInt KLtsyMaxCallId = 7;
       
    62 
       
    63 /**
       
    64  * +WIND
       
    65  */
       
    66 const TInt KLtsyUnsolicitedEvent00 = 0;
       
    67 const TInt KLtsyUnsolicitedEvent01 = 1;
       
    68 const TInt KLtsyUnsolicitedEvent02 = 2;
       
    69 const TInt KLtsyUnsolicitedEvent03 = 3;
       
    70 const TInt KLtsyUnsolicitedEvent04 = 4;
       
    71 const TInt KLtsyUnsolicitedEvent05 = 5;
       
    72 const TInt KLtsyUnsolicitedEvent06 = 6;
       
    73 const TInt KLtsyUnsolicitedEvent07 = 7;
       
    74 const TInt KLtsyUnsolicitedEvent08 = 8;
       
    75 const TInt KLtsyUnsolicitedEvent09 = 9;
       
    76 const TInt KLtsyUnsolicitedEvent10 = 10;
       
    77 const TInt KLtsyUnsolicitedEvent11 = 11;
       
    78 const TInt KLtsyUnsolicitedEvent12 = 12;
       
    79 /**
       
    80  *  const for sms 
       
    81  */
       
    82 const TInt KGsmTpduSize = 165;            // 140 bytes user data + 25 bytes TPDU header
       
    83 const TInt KPduMode = 0;
       
    84 const TInt KTextMode = 1;
       
    85 const TInt KCMTMode = 2;
       
    86 const TInt KMaxAsciiPduLength = 400;       //For write message and send message
       
    87 
       
    88 /**
       
    89  * ReadEntry for phonebook
       
    90  */
       
    91 class TPhonebookReadEntry
       
    92     {
       
    93 public:
       
    94 	TUint16     iIndex;
       
    95     TBuf16<20>  iNumber;
       
    96     TUint8      iTon;
       
    97     TBuf16<14>  iText;	
       
    98     };
       
    99 
       
   100 // const string defination
       
   101 _LIT8(KLtsyOkString,"OK");
       
   102 _LIT8(KLtsyErrorString,"ERROR");
       
   103 _LIT8(KLtsyCmeErrorString,"+CME ERROR:*");
       
   104 _LIT8(KLtsyNoCarrierString,"NO CARRIER");
       
   105 _LIT8(KLtsyGeneralIndMatchString, "+WIND:*");
       
   106 _LIT8(KAnyATCommand,"AT+*");
       
   107 
       
   108 _LIT8(KLtsyCtrlZChar,"\032");
       
   109 _LIT8(KLtsyCommaChar,",");
       
   110 #endif /*LTSYCOMMONDEFINE_H_*/