upnpavcontrolpoint/avcpengine/inc/upnpdeletecommand.h
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /** @file
       
     2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies  this distribution, and is available 
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Delete file/directory in MS
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CUPNPDELETECOMMAND_H
       
    20 #define C_CUPNPDELETECOMMAND_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "upnpcommand.h"
       
    24 #include "upnpresponsehandler.h"
       
    25 #include "upnpresolverobserver.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CUpnpPathResolver;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 * Class responsible for deleting files/directories in MS .
       
    33 *
       
    34 *  @since Series 60 3.1
       
    35 */
       
    36 class CUpnpDeleteCommand : public CUpnpCommand, public MUpnpResponseHandler, 
       
    37                                         public MUpnpResolverObserver
       
    38 	{
       
    39 	public:	
       
    40 		/**
       
    41 		* Two-phased constructor.
       
    42 		*
       
    43 		* @param aAVCPManager manager
       
    44 		* @param aSession server-side session
       
    45 		* @param aMessage message
       
    46 		*/	
       
    47 		static CUpnpDeleteCommand* NewL(CUpnpAVCPManager& aAVCPManager, 
       
    48 			CUpnpAVCPEngineSession& aSession, const RMessage2& aMessage);
       
    49 		/**
       
    50 		* Destructor.
       
    51 		*/		       
       
    52 		virtual ~CUpnpDeleteCommand();	       
       
    53 
       
    54 
       
    55 	public:	// Method from CUpnpCommand
       
    56 		/**
       
    57 		* From CUpnpCommand returns session id.
       
    58 		* It is also defined in MUpnpResponseHandler, MUpnpHttpResponseHandler
       
    59 		* @since Series 60 3.1
       
    60 		*/	
       
    61 		TInt SessionId();
       
    62 		/**
       
    63 		* From CUpnpCommand implement logic for leaves that appear during InterpretL.
       
    64 		* It is also defined in MUpnpResponseHandler, MUpnpHttpResponseHandler
       
    65 		* @since Series 60 3.1
       
    66 		*/	
       
    67 		void RunError(TInt aErrorCode);		
       
    68 		/**
       
    69 		* From CUpnpCommand perfroms operation connected with command
       
    70 		* @since Series 60 3.1
       
    71 		*/			
       
    72 		void ExecuteL();
       
    73 		/**
       
    74 		* From CUpnpCommand it is empty implementation.
       
    75 		* @since Series 60 3.1
       
    76 		*/				
       
    77 		void SetResultL(const RMessage2& aMessage);	
       
    78 		
       
    79 	public:	// Method from observers	
       
    80 		/**
       
    81 		* From MUpnpResponseHandler, it is notified when SOAP respone 
       
    82 		* with relevant session id comes.
       
    83 		* @param aErrorCode error code
       
    84 		* @param aAction action with attached respone
       
    85 		* @since Series 60 3.1
       
    86 		*/	
       
    87 		void InterpretL(TInt aErrorCode, CUpnpAction* aAction);
       
    88 		/**
       
    89 		* From MUpnpResolverObserver, it is notified after translation path into id.
       
    90 		* 
       
    91 		* @param aErrorCode error code (KErrNone if Ok)
       
    92 		* @param aIdElement object describing searched element
       
    93 		* @since Series 60 3.1
       
    94 		*/		
       
    95 		void ResolvedIdL(TInt aErrCode, CUpnpPathElement* aIdElement);					
       
    96 	
       
    97 	private:
       
    98 		/**
       
    99 		* C++ default constructor.
       
   100 		*/	
       
   101 		CUpnpDeleteCommand(CUpnpAVCPManager& aAVCPManager, 
       
   102 			CUpnpAVCPEngineSession& aSession, const RMessage2& aMessage);
       
   103 		/**
       
   104 		* Symbian 2nd phase constructor.
       
   105 		*/				
       
   106 		void ConstructL();
       
   107 		
       
   108 	private:
       
   109 		// path resolver
       
   110 		CUpnpPathResolver* iPathResolver;
       
   111 
       
   112 };
       
   113 
       
   114 #endif // C_CUPNPDELETECOMMAND_H