Update contrib.
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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // f32test\server\t_notify_plugin.h
18 #if !defined(__Notify_PLUGIN_H__)
19 #define __Notify_PLUGIN_H__
21 #include <f32plugin.h>
23 #define _LOG(a) {if(iLogging) RDebug::Print(a);}
24 #define _LOG2(a,b) {if(iLogging) RDebug::Print(a,b);}
25 #define _LOG3(a,b,c) {if(iLogging) RDebug::Print(a,b,c);}
26 #define _LOG4(a,b,c,d) {if(iLogging) RDebug::Print(a,b,c,d);}
27 #define _LOG5(a,b,c,d,e) {if(iLogging) RDebug::Print(a,b,c,d,e);}
29 const TInt KNotifyPos = 0x2FFFFFFF;
30 const TInt KPluginSetDrive = -112233;
32 _LIT(KNotifyPluginFileName,"t_notify_plugin");
33 _LIT(KNotifyPluginName,"NotifyPlugin");
35 class CNotifyPlugin : public CFsPlugin
39 static CNotifyPlugin* NewL();
42 virtual void InitialiseL();
43 virtual TInt DoRequestL(TFsPluginRequest& aRequest);
45 TInt FsPluginDoControlL(CFsPluginConnRequest& aRequest);
48 CFsPluginConn* NewPluginConnL();
54 void EnableInterceptsL();
55 void DisableInterceptsL();
59 TBool iInterceptsEnabled;
63 class CNotifyPluginConn : public CFsPluginConn
65 virtual TInt DoControl(CFsPluginConnRequest& aRequest);
66 virtual void DoRequest(CFsPluginConnRequest& aRequest);
67 virtual void DoCancel(TInt aReqMask);