telephonyserverplugins/multimodetsy/Multimode/sms/mSMSSTOR.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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalAll 
       
    19 */
       
    20 
       
    21 #ifndef __MSMSSTOR_H__
       
    22 #define __MSMSSTOR_H__
       
    23 
       
    24 #include <et_phone.h>
       
    25 #include "smsbase.H"
       
    26 
       
    27 class CATIO;
       
    28 class CATInit;
       
    29 class CATSmsMessagingRead;
       
    30 class CATSmsMessagingWrite;
       
    31 class CATSmsStorageDelete;
       
    32 class CATSmsMemoryStorage;
       
    33 //class CATSmsMessagingReadAll; // Raed all functionality not in use at the momemnt. Henrik 13/06/01
       
    34 
       
    35 
       
    36 //
       
    37 // CMobileSmsStore
       
    38 //
       
    39 class CMobileSmsStore : public CSubSessionExtBase
       
    40 	{
       
    41 public:
       
    42 	static CMobileSmsStore* NewL(CATIO* aATIO, CATInit* aInit, CPhoneGlobals* aPhoneGlobals, TStorageType aStoreType);
       
    43 	CMobileSmsStore(CATIO* aATIO, CATInit* aInit, CPhoneGlobals* aPhoneGlobals, TStorageType aStoreType);
       
    44 	~CMobileSmsStore();
       
    45 	
       
    46 	virtual CTelObject* OpenNewObjectByNameL(const TDesC&);
       
    47 	virtual CTelObject* OpenNewObjectL(TDes& aNewName);
       
    48 	virtual TInt ExtFunc(const TTsyReqHandle aTsyReqHandle,const TInt aIpc, const TDataPackage& aPackage);
       
    49 	virtual TInt NumberOfSlotsL(const TInt aIpc);
       
    50 	virtual TInt RegisterNotification(const TInt aIpc);
       
    51 	virtual TInt DeregisterNotification(const TInt aIpc);
       
    52 	virtual CTelObject::TReqMode ReqModeL(const TInt aIPC);
       
    53 	virtual TInt CancelService(const TInt aIpc, const TTsyReqHandle aTsyReqHandle);
       
    54 	virtual void Init();
       
    55 private:
       
    56 	void ConstructL();
       
    57 	TInt GetInfo(const TTsyReqHandle aTsyReqHandle,TDes8* aInfoPckg);
       
    58 	TInt GetInfoCancel(const TTsyReqHandle aTsyReqHandle);
       
    59 	TInt Read(const TTsyReqHandle aTsyReqHandleconst,TDes8* aEntryPckg);
       
    60 	TInt ReadCancel(const TTsyReqHandle aTsyReqHandle);
       
    61 	TInt Write(const TTsyReqHandle aTsyReqHandleconst, TDes8* aEntryPckg);
       
    62 	TInt WriteCancel(const TTsyReqHandle aTsyReqHandle);
       
    63 	TInt Delete(const TTsyReqHandle aTsyReqHandleconst, TInt* aIndex);
       
    64 	TInt DeleteCancel(const TTsyReqHandle aTsyReqHandle);
       
    65 
       
    66 public:
       
    67 	TStorageType iStoreName;	
       
    68 private:
       
    69 	CATIO* iIo;
       
    70 	CATInit* iInit;
       
    71 	CPhoneGlobals* iPhoneGlobals;
       
    72 	
       
    73 	CATSmsMessagingWrite* iATSmsStorageWrite;
       
    74 	CATSmsStorageDelete* iATSmsStorageDelete;
       
    75 	CATSmsMessagingRead* iATSmsStorageRead; 
       
    76 	CATSmsMemoryStorage* iATSmsStorageGetInfo;
       
    77 	};
       
    78 
       
    79 #endif