contentmgmt/referencedrmagent/RefTestAgent/RTAServer/Server/rtacontenthandler.h
changeset 8 35751d3474b7
child 15 da2ae96f639b
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 /*
       
     2 * Copyright (c) 2004-2009 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 the License "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: 
       
    15 * sisregistry - server classes
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file 
       
    22  @test
       
    23  @internalComponent
       
    24 */
       
    25 #ifndef __RTACONTENTHANDLER_H__
       
    26 #define __RTACONTENTHANDLER_H__
       
    27 
       
    28 #include <e32base.h>
       
    29 #include "clientserver.h"
       
    30 #include "RTAserver.h"
       
    31 #include "rtamessagehandler.h"
       
    32 
       
    33 namespace ReferenceTestAgent
       
    34 	{
       
    35 	class CRefTestAgentArchive;
       
    36 	class CDrmFileContent;
       
    37 	
       
    38 	class CRtaContentHandler : public CRtaMessageHandler
       
    39 		{
       
    40 	public:
       
    41 		static CRtaContentHandler* NewL(const CSession2& aSession);
       
    42 
       
    43 		virtual void ServiceL(const RMessage2& aMessage);
       
    44 		virtual ~CRtaContentHandler();		
       
    45 		
       
    46 	private:
       
    47 		CRtaContentHandler(const CSession2& aSession);
       
    48 		
       
    49 		// RRtaContent functions
       
    50 		void OpenFileL(const RMessage2& aMessage);
       
    51 		void OpenFileHandleL(const RMessage2& aMessage);
       
    52 		void OpenContainerL(const RMessage2& aMessage);
       
    53 		void CloseContainerL(const RMessage2& aMessage);
       
    54 		void GetEmbeddedObjects1L(const RMessage2& aMessage);
       
    55 		void GetEmbeddedObjects2L(const RMessage2& aMessage);
       
    56 		void SearchL(const RMessage2& aMessage);		
       
    57 		void GetAttributeL(const RMessage2& aMessage);
       
    58 		void GetAttributeSetL(const RMessage2& aMessage);
       
    59 		void GetStringAttributeL(const RMessage2& aMessage);
       
    60 		void GetStringAttributeSetL(const RMessage2& aMessage);
       
    61 		
       
    62 		void AgentSpecificCommandL(const RMessage2& aMessage);
       
    63 		void AgentSpecificCommandAsyncL(const RMessage2& aMessage);
       
    64 		void NotifyStatusChangeL(const RMessage2& aMessage);
       
    65 		void CancelNotifyStatusChangeL(const RMessage2& aMessage);
       
    66 		void RequestRightsL(const RMessage2& aMessage);
       
    67 		void CancelRequestRightsL(const RMessage2& aMessage);
       
    68 		void DisplayInfoL(const RMessage2& aMessage);
       
    69 		void SetPropertyL(const RMessage2& aMessage);
       
    70 
       
    71 	private:
       
    72 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
       
    73 		RFile64 iFile;
       
    74 #else
       
    75 		RFile iFile;
       
    76 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
       
    77 		CRefTestAgentArchive* iArchive;
       
    78 		};
       
    79 	} //namespace
       
    80 
       
    81 #endif