cbsref/telephonyrefplugins/atltsy/atcommand/sms/inc/atsmsstoredelete.h
changeset 49 f50f4094acd7
equal deleted inserted replaced
48:14460bf2a402 49:f50f4094acd7
       
     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 atsmsstoredelete.h
       
    15 // This contains CAtSmsStoreDelete and CAtSmsStoreDeleteAll which is used to delete message(s)
       
    16 // 
       
    17 
       
    18 #ifndef ATSMSSTOREDELETE_H
       
    19 #define ATSMSSTOREDELETE_H
       
    20 
       
    21 //system include 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 //user include 
       
    26 #include "atcommandbase.h"
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30  * CAtSmsStoreDelete
       
    31  *
       
    32  */
       
    33 class CAtSmsStoreDelete : public CAtCommandBase
       
    34 	{
       
    35 public:
       
    36 	/**
       
    37 	* Destructor
       
    38 	*
       
    39 	*/
       
    40 	~CAtSmsStoreDelete();
       
    41 	
       
    42 	/**
       
    43 	*  static NewL  
       
    44 	*
       
    45 	* @param aGloblePhone
       
    46 	* @param aCtsyDispatcherCallback
       
    47 	*/
       
    48 	static CAtSmsStoreDelete* NewL(CGlobalPhonemanager& aGloblePhone, 
       
    49                                    CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    50 	
       
    51 	/**
       
    52 	*  static NewLC 
       
    53 	*
       
    54 	* @param aGloblePhone
       
    55 	* @param aCtsyDispatcherCallback
       
    56 	*/
       
    57 	static CAtSmsStoreDelete* NewLC(CGlobalPhonemanager& aGloblePhone, 
       
    58                                     CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    59 	
       
    60 	/**
       
    61 	* Virtual function. Inherited from CAtCommandBase
       
    62 	*  Start Execute AT Command
       
    63 	*/
       
    64 	virtual void ExecuteCommand();
       
    65 	
       
    66 	/**
       
    67 	* Will be called by AT Manager whenever a event was triggered
       
    68 	* 
       
    69 	* @param aEventSource
       
    70 	* @param aStatus
       
    71 	*/
       
    72 	virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus);
       
    73 	
       
    74 	/**
       
    75 	* Virtual function. Inherited from CAtCommandBase
       
    76 	* 
       
    77 	* @param aResponseBuf Line buf reading from baseband 
       
    78 	*/
       
    79 	virtual void ParseResponseL(const TDesC8& aResponseBuf);
       
    80 	
       
    81 	/**
       
    82 	* Start this request
       
    83 	* 
       
    84 	*/
       
    85 	void StartRequest();
       
    86 	
       
    87 	/**
       
    88 	* Set the message index to be deleted
       
    89 	* 
       
    90 	*/
       
    91 	void SetDelIndex(TInt aIndex);
       
    92 private:
       
    93 	/**
       
    94 	* Constructor
       
    95 	*
       
    96 	* @param aGloblePhone
       
    97 	* @param aCtsyDispatcherCallback
       
    98 	*/
       
    99 	CAtSmsStoreDelete(CGlobalPhonemanager& aGloblePhone, 
       
   100                      CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
   101 	
       
   102 	/**
       
   103 	* 2nd Constructor
       
   104 	*/
       
   105 	void ConstructL();
       
   106 private:
       
   107 	/**
       
   108 	*  message's index 
       
   109 	* 
       
   110 	*/	
       
   111 	TInt iIndex;
       
   112 	
       
   113 	/**
       
   114 	* The return error value of AT command executed 
       
   115 	*/
       
   116 	TInt iError;
       
   117 	
       
   118 	}; // class CAtSmsStoreDelete
       
   119 
       
   120 
       
   121 /**
       
   122  * CAtSmsStoreDeleteAll
       
   123  *
       
   124  */
       
   125 class CAtSmsStoreDeleteAll : public CAtCommandBase
       
   126 	{
       
   127 public:
       
   128 	/**
       
   129 	* Destructor
       
   130 	*
       
   131 	*/
       
   132 	~CAtSmsStoreDeleteAll();
       
   133 	
       
   134 	/**
       
   135 	*  static NewL  
       
   136 	*
       
   137 	* @param aGloblePhone
       
   138 	* @param aCtsyDispatcherCallback
       
   139 	*/
       
   140 	static CAtSmsStoreDeleteAll* NewL(CGlobalPhonemanager& aGloblePhone, 
       
   141                                       CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
   142 	
       
   143 	/**
       
   144 	*  static NewLC 
       
   145 	*
       
   146 	* @param aGloblePhone
       
   147 	* @param aCtsyDispatcherCallback
       
   148 	*/
       
   149 	static CAtSmsStoreDeleteAll* NewLC(CGlobalPhonemanager& aGloblePhone, 
       
   150                                        CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
   151 	
       
   152 	/**
       
   153 	* Virtual function. Inherited from CAtCommandBase
       
   154 	*  Start Execute AT Command
       
   155 	*/
       
   156 	virtual void ExecuteCommand();
       
   157 	
       
   158 	/**
       
   159 	* Will be called by AT Manager whenever a event was triggered
       
   160 	* 
       
   161 	* @param aEventSource
       
   162 	* @param aStatus
       
   163 	*/
       
   164 	virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus);
       
   165 	
       
   166 	/**
       
   167 	* Virtual function. Inherited from CAtCommandBase
       
   168 	* 
       
   169 	* @param aResponseBuf Line buf reading from baseband 
       
   170 	*/
       
   171 	virtual void ParseResponseL(const TDesC8& aResponseBuf);
       
   172 	
       
   173 	/**
       
   174 	* Start this request
       
   175 	* 
       
   176 	*/
       
   177 	void StartRequest();
       
   178 private:
       
   179 	/**
       
   180 	* Constructor
       
   181 	*
       
   182 	* @param aGloblePhone
       
   183 	* @param aCtsyDispatcherCallback
       
   184 	*/
       
   185 	CAtSmsStoreDeleteAll(CGlobalPhonemanager& aGloblePhone, 
       
   186                          CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
   187 	
       
   188 	/**
       
   189 	* 2nd Constructor
       
   190 	*/
       
   191 	void ConstructL();
       
   192 private:
       
   193 	/**
       
   194 	* The return error value of AT command executed 
       
   195 	*/
       
   196 	TInt iError;	
       
   197 	
       
   198 	}; // class CAtSmsStoreDeleteAll	
       
   199 #endif // ATSMSDELETE_H