diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/mtpdataproviderpluginexample_8h_source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/mtpdataproviderpluginexample_8h_source.html Tue Mar 30 16:16:55 2010 +0100 @@ -0,0 +1,77 @@ + + + + +TB9.2 Example Applications: examples/RemoteConn/MtpDataProviderExample/inc/mtpdataproviderpluginexample.h Source File + + + + + +

examples/RemoteConn/MtpDataProviderExample/inc/mtpdataproviderpluginexample.h

00001 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+00002 // All rights reserved.
+00003 // This component and the accompanying materials are made available
+00004 // under the terms of "Eclipse Public License v1.0"
+00005 // which accompanies this distribution, and is available
+00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
+00007 //
+00008 // Initial Contributors:
+00009 // Nokia Corporation - initial contribution.
+00010 //
+00011 // Contributors:
+00012 //
+00013 // Description:
+00014 //
+00015 
+00016 #ifndef MTPDATAPROVIDERPLUGINEXAMPLE_H
+00017 #define MTPDATAPROVIDERPLUGINEXAMPLE_H
+00018 
+00019 #include <mtp/cmtpdataproviderplugin.h>
+00020 
+00021 // Forward declaration
+00022 class MMTPExampleDpRequestProcessor;
+00023 class CMTPObjectMetaData;
+00024 
+00028 class CMTPExampleDataProvider : 
+00029         public CMTPDataProviderPlugin
+00030     {
+00031 public:
+00032     static TAny* NewL(TAny* aParams);
+00033     virtual ~CMTPExampleDataProvider();
+00034   
+00035 private:
+00036         //from CMTPDataProviderPlugin
+00037     void Cancel();
+00038     void ProcessEventL(const TMTPTypeEvent& aEvent, MMTPConnection& aConnection);
+00039     void ProcessNotificationL(TMTPNotification aNotification, const TAny* aParams);
+00040     void ProcessRequestPhaseL(TMTPTransactionPhase aPhase, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection);
+00041     void SessionClosedL(const TMTPNotificationParamsSessionChange& aSession);
+00042     void SessionOpenedL(const TMTPNotificationParamsSessionChange& aSession);
+00043     void StartObjectEnumerationL(TUint32 aStorageId);
+00044     void StartStorageEnumerationL();
+00045     void Supported(TMTPSupportCategory aCategory, RArray<TUint>& aArray) const;
+00046         void SupportedL(TMTPSupportCategory aCategory, CDesCArray& aStrings) const;
+00047 
+00048     TAny* GetExtendedInterface(TUid aInterfaceUid);
+00049          
+00050 private:
+00051     CMTPExampleDataProvider(TAny* aParams);
+00052         void ConstructL();
+00053 
+00054         TInt LocateRequestProcessorL(const TMTPTypeRequest& aRequest, MMTPConnection& aConnection);
+00055         TInt LocateRequestProcessorL(const TMTPTypeEvent& aEvent, MMTPConnection& aConnection); 
+00056                                         
+00057 private:
+00058     
+00059         RPointerArray<MMTPExampleDpRequestProcessor> iActiveProcessors;
+00060         TInt                                    iActiveProcessor;
+00061     TBool                                       iActiveProcessorRemoved; 
+00062     };
+00063  
+00064 #endif // MTPDATAPROVIDERPLUGINEXAMPLE_H
+
+
Generated by  + +doxygen 1.6.2
+ +