diff -r 6b1d113cdff3 -r 6638e7f4bd8f telephonyserverplugins/simtsy/inc/csimsmsmess.h --- a/telephonyserverplugins/simtsy/inc/csimsmsmess.h Mon May 03 13:37:20 2010 +0300 +++ b/telephonyserverplugins/simtsy/inc/csimsmsmess.h Thu May 06 15:10:38 2010 +0100 @@ -1,255 +1,255 @@ -// 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_ +// 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_