telephonyserverplugins/multimodetsy/test/Te_Sms/Te_Sms.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 1997-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 // GSM Sms tests Header file
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent 
       
    21 */
       
    22 
       
    23 
       
    24 #ifndef __TE_SMS_H__
       
    25 #define __TE_SMS_H__
       
    26 
       
    27 #include "Te_SmsTestStepBase.h"
       
    28 
       
    29 #define MODULENAME	_L("GSMBSC")
       
    30 #define PHONENAME	_L("GsmPhone1")
       
    31 #define DATALINENAME	_L("Data")
       
    32 #define FAXLINENAME	_L("Fax")
       
    33 #define VOICELINENAME _L("Voice")
       
    34 #define CALLNAME	_L("Harry")
       
    35 #define CALLNAME2	_L("John")
       
    36 #define SMS_OPEN_FAXCALL_FROM_PHONE_NAME	_L("Fax::Harry")
       
    37 #define SMS_OPEN_FAXCALL_FROM_SERVER_NAME	_L("GsmPhone1::Fax::Harry")
       
    38 #define SMS_OPEN_DATACALL_FROM_SERVER_NAME	_L("GsmPhone1::Data::Harry")
       
    39 #define SMS_OPEN_DATALINE_FROM_SERVER_NAME	_L("GsmPhone1::Data")
       
    40 #define PHONENUMBER1 _L8("386")			//01632960000 , 9,0467439100
       
    41 #define PHONENUMBER2 _L8("")
       
    42 #define RESPONDER_SEMAPHORE_NAME _L("ResponderStartupSem")
       
    43 #define RESPONDER_NAME	  _L("Responder")
       
    44 #define ONE_SECOND	1000000
       
    45 
       
    46 #define LEAVE_IF_ERROR(b)\
       
    47 {\
       
    48 const TInt a=b;\
       
    49 if (a!=KErrNone)\
       
    50 	{\
       
    51     TText8* fileChars = (TText8*)__FILE__;\
       
    52     TPtrC8 fileName8(fileChars);\
       
    53 	TBuf<128> fileName;\
       
    54 	fileName.Copy(fileName8);\
       
    55     INFO_PRINTF4(_L("%S ret=%d line=%d"),&fileName,a,__LINE__);\
       
    56 	}\
       
    57 User::LeaveIfError(a);\
       
    58 }
       
    59 
       
    60 #define LEAVE(b)\
       
    61     {\
       
    62 	const TInt a=b;\
       
    63 	TText8* fileChars = (TText8*)__FILE__;\
       
    64     TPtrC8 fileName8(fileChars);\
       
    65 	TBuf<128> fileName;\
       
    66 	fileName.Copy(fileName8);\
       
    67     INFO_PRINTF4(_L("%S ret=%d line=%d"),&fileName,a,__LINE__);\
       
    68 	User::Leave(a);\
       
    69 	}
       
    70 
       
    71 
       
    72 class RTelServer;
       
    73 
       
    74 /**
       
    75  * \class CTestSms Te_sms.h "test/Te_sms/Te_sms.h"
       
    76  * \brief Test class that enables GSM Sms tests.
       
    77  * 
       
    78  * CTestSms inherits from the CSmsTestStep class.
       
    79  */
       
    80 
       
    81 class CTestSmsMessagingOpen : public CSmsTestStep
       
    82 	{
       
    83 public:
       
    84 	CTestSmsMessagingOpen() ;
       
    85 	virtual enum TVerdict doTestStepL();
       
    86 	};
       
    87 
       
    88 class CTestGetCaps : public CSmsTestStep
       
    89 	{
       
    90 public:
       
    91 	CTestGetCaps() ;
       
    92 	virtual enum TVerdict doTestStepL();
       
    93 	};
       
    94 
       
    95 class CTestSmspList : public CSmsTestStep
       
    96 	{
       
    97 public:
       
    98 	CTestSmspList() ;
       
    99 	virtual enum TVerdict doTestStepL();
       
   100 	};
       
   101 
       
   102 class CTestMessageStoreInfo : public CSmsTestStep
       
   103 	{
       
   104 public:
       
   105 	CTestMessageStoreInfo() ;
       
   106 	virtual enum TVerdict doTestStepL();
       
   107 	};
       
   108 
       
   109 class CTestMessageStoreOps : public CSmsTestStep
       
   110 	{
       
   111 public:
       
   112 	CTestMessageStoreOps() ;
       
   113 	virtual enum TVerdict doTestStepL();
       
   114 	};
       
   115 
       
   116 class CTestSendSms : public CSmsTestStep
       
   117 	{
       
   118 public:
       
   119 	CTestSendSms() ;
       
   120 	virtual enum TVerdict doTestStepL();
       
   121 	};
       
   122 
       
   123 class CTestReceiveUnstoredSms : public CSmsTestStep
       
   124 	{
       
   125 public:
       
   126 	CTestReceiveUnstoredSms() ;
       
   127 	virtual enum TVerdict doTestStepL();
       
   128 	};
       
   129 
       
   130 class CTestReceiveStoredSms : public CSmsTestStep
       
   131 	{
       
   132 public:
       
   133 	CTestReceiveStoredSms() ;
       
   134 	virtual enum TVerdict doTestStepL();
       
   135 	};
       
   136 
       
   137 class CTestReceiveStoredSmsAndCancel : public CSmsTestStep
       
   138 	{
       
   139 public:
       
   140 	CTestReceiveStoredSmsAndCancel() ;
       
   141 	virtual enum TVerdict doTestStepL();
       
   142 	};
       
   143 
       
   144 class CTestSendSmsAndCancel : public CSmsTestStep
       
   145 	{
       
   146 public:
       
   147 	CTestSendSmsAndCancel() ;
       
   148 	virtual enum TVerdict doTestStepL();
       
   149 	};
       
   150 
       
   151 class CTestAckSmsStored : public CSmsTestStep
       
   152 	{
       
   153 public:
       
   154 	CTestAckSmsStored() ;
       
   155 	virtual enum TVerdict doTestStepL();
       
   156 	};
       
   157 
       
   158 class CTestAckSmsStoredCancel : public CSmsTestStep
       
   159 	{
       
   160 public:
       
   161 	CTestAckSmsStoredCancel() ;
       
   162 	virtual enum TVerdict doTestStepL();
       
   163 	};
       
   164 
       
   165 class CTestNackSmsStored : public CSmsTestStep
       
   166 	{
       
   167 public:
       
   168 	CTestNackSmsStored() ;
       
   169 	virtual enum TVerdict doTestStepL();
       
   170 	};
       
   171 
       
   172 class CTestNackSmsStoredCancel : public CSmsTestStep
       
   173 	{
       
   174 public:
       
   175 	CTestNackSmsStoredCancel() ;
       
   176 	virtual enum TVerdict doTestStepL();
       
   177 	};
       
   178 
       
   179 class CTestAckSmsStoredWithResponse : public CSmsTestStep
       
   180 	{
       
   181 public:
       
   182 	CTestAckSmsStoredWithResponse() ;
       
   183 	virtual enum TVerdict doTestStepL();
       
   184 	};
       
   185 
       
   186 class CTestAckSmsStoredWithResponseCancel : public CSmsTestStep
       
   187 	{
       
   188 public:
       
   189 	CTestAckSmsStoredWithResponseCancel() ;
       
   190 	virtual enum TVerdict doTestStepL();
       
   191 	};
       
   192 
       
   193 class CTestNackSmsStoredWithResponse : public CSmsTestStep
       
   194 	{
       
   195 public:
       
   196 	CTestNackSmsStoredWithResponse() ;
       
   197 	virtual enum TVerdict doTestStepL();
       
   198 	};
       
   199 
       
   200 class CTestNackSmsStoredWithResponseCancel : public CSmsTestStep
       
   201 	{
       
   202 public:
       
   203 	CTestNackSmsStoredWithResponseCancel() ;
       
   204 	virtual enum TVerdict doTestStepL();
       
   205 	};
       
   206 
       
   207 class CTestResumeSmsReception : public CSmsTestStep
       
   208 	{
       
   209 public:
       
   210 	CTestResumeSmsReception() ;
       
   211 	virtual enum TVerdict doTestStepL();
       
   212 	};
       
   213 
       
   214 class CTestNotifySmsEvent : public CSmsTestStep
       
   215 	{
       
   216 public:
       
   217 	CTestNotifySmsEvent() ;
       
   218 	virtual enum TVerdict doTestStepL();
       
   219 	};
       
   220 
       
   221 class CTestNotifySmsEventCancel : public CSmsTestStep
       
   222 	{
       
   223 public:
       
   224 	CTestNotifySmsEventCancel() ;
       
   225 	virtual enum TVerdict doTestStepL();
       
   226 	};
       
   227 
       
   228 /*class CTestSms : public CSmsTestStep
       
   229 	{
       
   230 public:
       
   231 	virtual enum TVerdict doTestStepL();
       
   232 	CTestSms();
       
   233 	~CTestSms();
       
   234 
       
   235 private:
       
   236 	RMobileCall iVoiceCall;
       
   237 	RMobileCall iDataCall;
       
   238 	TBool ibReceivedStoredSupported;
       
   239 	TBool ibReceivedUnstoredSupported;
       
   240 	TRequestStatus iStatus;
       
   241 	CPeriodic* iPeriodic;
       
   242 	
       
   243 	TUint msgRef;
       
   244 	TRequestStatus aBooReadStatus;
       
   245 	TRequestStatus aBooWriteStatus;
       
   246 	TRequestStatus aBooDeleteStatus;
       
   247 
       
   248 	TInt aIndex1;
       
   249 	TInt aIndex2;
       
   250 	TBool isTrue;
       
   251 	RMobileSmsStore::TMobileGsmSmsEntryV1 aMsg;
       
   252 	RMobileSmsStore::TMobileGsmSmsEntryV1 aMsg2;
       
   253 
       
   254 	TPtrC8 pduPtr;
       
   255 	RMobileSmsMessaging::TMobileSmsSendAttributesV1 sendAttr;
       
   256 	RMobileSmsMessaging::TMobileSmsSendAttributesV1 sendAttr1;
       
   257 	TBuf8<256> smsData;
       
   258 	};
       
   259 */
       
   260 
       
   261 #endif // __TE_SMS_H__