cbsref/telephonyrefplugins/atltsy/atcommand/sms/inc/atsmsstorereadall.h
branchRCL_3
changeset 65 630d2f34d719
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
       
     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 // @file atsmsstorereadall.h
       
    15 // This contains CAtSmsStoreReadAll which is used to read all messages
       
    16 // 
       
    17 
       
    18 #ifndef ATSMSSTOREREADALL_H
       
    19 #define ATSMSSTOREREADALL_H
       
    20 
       
    21 //system include 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <ctsy/ltsy/mltsydispatchphonebookinterface.h>
       
    25 
       
    26 //user include
       
    27 #include "atcommandbase.h"
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31  * CAtSmsStoreReadAll
       
    32  *
       
    33  */
       
    34 
       
    35 class CAtSmsStoreReadAll : public CAtCommandBase
       
    36 	{
       
    37 public:
       
    38 	/**
       
    39 	* Destructor
       
    40 	*
       
    41 	*/	
       
    42 	~CAtSmsStoreReadAll();
       
    43 	
       
    44 	/**
       
    45 	*  static NewL  
       
    46 	*
       
    47 	* @param aGloblePhone
       
    48 	* @param aCtsyDispatcherCallback
       
    49 	*/
       
    50 	static CAtSmsStoreReadAll* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    51                                      CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    52 	
       
    53 	/**
       
    54 	*  static NewLC  
       
    55 	*
       
    56 	* @param aGloblePhone
       
    57 	* @param aCtsyDispatcherCallback
       
    58 	*/
       
    59 	static CAtSmsStoreReadAll* NewLC(CGlobalPhonemanager& aGloblePhone, 
       
    60                                       CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    61 	
       
    62 	/**
       
    63 	* Virtual function. Inherited from CAtCommandBase
       
    64 	*  Start Execute AT Command
       
    65 	*/
       
    66 	virtual void ExecuteCommand();
       
    67 	
       
    68 	/**
       
    69 	* Will be called by AT Manager whenever a event was triggered
       
    70 	* 
       
    71 	* @param aEventSource
       
    72 	* @param aStatus
       
    73 	*/
       
    74 	virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus);
       
    75 	
       
    76 	/**
       
    77 	* Virtual function. Inherited from CAtCommandBase
       
    78 	* 
       
    79 	* @param aResponseBuf Line buf reading from baseband 
       
    80 	*/
       
    81 	virtual void ParseResponseL(const TDesC8& aResponseBuf);
       
    82 	
       
    83 	/**
       
    84 	* Start this request
       
    85 	* 
       
    86 	*/
       
    87 	void StartRequest();
       
    88 private:
       
    89 	/**
       
    90 	* Constructor
       
    91 	*
       
    92 	* @param aGloblePhone
       
    93 	* @param aCtsyDispatcherCallback
       
    94 	*/	
       
    95 	CAtSmsStoreReadAll(CGlobalPhonemanager& aGloblePhone, 
       
    96                         CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    97 	
       
    98 	/**
       
    99 	* 2nd Constructor
       
   100 	*/	
       
   101 	void ConstructL();
       
   102 	
       
   103 	/**
       
   104 	*  Executer AT command for reading message via aIndex
       
   105 	*/
       
   106 	void ReadMessage();
       
   107 private:
       
   108 	/*
       
   109 	*  The index message should be read
       
   110 	*/	
       
   111     TInt iIndex;
       
   112     
       
   113     /**
       
   114 	* readmessage callback struct
       
   115 	*/
       
   116 	DispatcherPhonebook::TSmsData iSmsData;
       
   117 	
       
   118 	/**
       
   119 	* The return error value of AT command executed 
       
   120 	*/
       
   121 	TInt iError; 
       
   122 	
       
   123 	}; // class CAtSmsStoreReadAll
       
   124 
       
   125 #endif // ATSMSSTOREREADALL_H