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