diff -r 000000000000 -r 3553901f7fa8 telephonyserverplugins/simtsy/inc/csimsmsmess.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/telephonyserverplugins/simtsy/inc/csimsmsmess.h Tue Feb 02 01:41:59 2010 +0200 @@ -0,0 +1,253 @@ +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @internalAll +*/ + + +#ifndef __SIMSMSMESS_H_ +#define __SIMSMSMESS_H_ + +#include +#include + +#include "CSimPhone.h" +#include "csimtimer.h" + +#include "CSimSmsStore.h" +#include "utils.h" + +const TUint KMaxSmsPduLength=168; +typedef TBuf8 TSmsPdu; + +const TUint KMaxSmsScaLength=100; +typedef TBuf8 TSmsSca; + +const TUint KMaxSmsDestinationLength=50; +typedef TBuf8 TSmsDestination; + +const TUint KMaxSmsExpectedErrorLength=10; +typedef TBuf8 TSmsExpectedError; + + +struct TSmsTxParametersGsm +{ + TInt iFlags; + RMobileSmsMessaging::TMobileSmsGsmTpdu iPdu; + TSmsSca iSca; + TInt iRef; + RMobileSmsMessaging::TMobileSmsGsmTpdu iSubmitReport; + TInt iExpectedError; +}; + + +struct TSmsRxParametersGsm +{ + RMobileSmsMessaging::TMobileSmsGsmTpdu iPdu; + RMobileSmsMessaging::TMobileSmsGsmTpdu iDeliveryReport; + TSmsSca iSca; +}; + + +struct TConstraintEntry +{ + TInt iIpcCnt; // * iSmsStores; + + CArrayFixFlat* iSmsRxParameterListGsm; // < Contains the values associated with the SmsRx tag for GSM + + TInt iSmsRxPeriod; // < The period between simulating received SMS messages. + TInt iAckNackCompletePause; // < The pause before Ack/Nack requests are completed. + TInt iResumeCompletePause; // < The pause before Resume requests are completed. + TBool iSmsStoreFull; // < Flag to indicate that last Ack/NAck received stated that the store was full. + TInt iSmsRxCnt; // < Count of the number of SMS messages received. + TBool iSmsRxReqOutstanding; // < Flags if ReceiveMessage has been posted by the client + TDes8* iSmsRxPdu; + RMobileSmsMessaging::TMobileSmsReceiveAttributesV1* iSmsRxAttrib; // * iSmsTxParametersListGsm; // < Contains the values associated with the Smstx tag + + RMobileSmsMessaging::TMobileSmsSendAttributesV1* iSmsTxAttrib; // iConstraints; // < An array of constraints + + //smsp + CArrayPtrFlat* iSmspReadAll; // < A list of the oustanding two phase batch read requests. + CMobilePhoneSmspList* iSmspEntries; // < A pointer to the SMSpList array. + TInt iSmspBatchPause; // < The pause value used to delay the completion of a batch SMS Store manipulation request. + TBool iSmspBusy; // < Used as a semaphore to avoid store/get at the same time. + + RMobileSmsMessaging::TMobileSmsModeCaps iSmsModeCaps; // < The mode capabilities of messaging(TMobileSmsControlCaps) + TInt iSmsRxStartDelay; + TBool iSmsReceiveModeSet; + TUint8 iLastTxMsgId[2]; + }; + +#endif // __SIMSMSMESS_H_