bluetooth/btstack/linkmgr/Subscribers.h
changeset 0 29b1cd4cb562
child 13 20fda83a6398
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2003-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 //
       
    15 
       
    16 #ifndef _SUBSCRIBERS_H
       
    17 #define _SUBSCRIBERS_H
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <e32property.h>
       
    21 
       
    22 class CLinkMgrProtocol;
       
    23 
       
    24 NONSHARABLE_CLASS(CSubscriber) : public CActive
       
    25 	{
       
    26 public:
       
    27 	~CSubscriber();
       
    28 protected:
       
    29 	CSubscriber(CLinkMgrProtocol& aLinkMgrProtocol);
       
    30 	void ConstructL(const TUint aKey);
       
    31 	void Subscribe();
       
    32 protected:
       
    33 	CLinkMgrProtocol&	iParent;
       
    34 	RProperty			iProperty;
       
    35 private:
       
    36 	void DoCancel();
       
    37 	TInt RunError(TInt aError);
       
    38 	};
       
    39 	
       
    40 NONSHARABLE_CLASS(CDiscoverabilitySubscriber) : public CSubscriber
       
    41 	{
       
    42 public:
       
    43 	static CDiscoverabilitySubscriber* NewL(CLinkMgrProtocol& aLinkMgrProtocol);
       
    44 private:
       
    45 	CDiscoverabilitySubscriber(CLinkMgrProtocol& aLinkMgrProtocol);
       
    46 	void RunL();
       
    47 	};
       
    48 
       
    49 
       
    50 NONSHARABLE_CLASS(CLimitedSubscriber) : public CSubscriber
       
    51 	{
       
    52 public:
       
    53 	static CLimitedSubscriber* NewL(CLinkMgrProtocol& aLinkMgrProtocol);
       
    54 private:
       
    55 	CLimitedSubscriber(CLinkMgrProtocol& aLinkMgrProtocol);
       
    56 	void RunL();
       
    57 	};
       
    58 
       
    59 NONSHARABLE_CLASS(CDeviceClassSubscriber) : public CSubscriber
       
    60 	{
       
    61 public:
       
    62 	static CDeviceClassSubscriber* NewL(CLinkMgrProtocol& aLinkMgrProtocol);
       
    63 private:
       
    64 	CDeviceClassSubscriber(CLinkMgrProtocol& aLinkMgrProtocol);
       
    65 	void RunL();
       
    66 	};
       
    67 	
       
    68 NONSHARABLE_CLASS(CDeviceNameSubscriber) : public CSubscriber
       
    69 	{
       
    70 public:
       
    71 	static CDeviceNameSubscriber* NewL(CLinkMgrProtocol& aLinkMgrProtocol);
       
    72 private:
       
    73 	CDeviceNameSubscriber(CLinkMgrProtocol& aLinkMgrProtocol);
       
    74 	void RunL();
       
    75 	};
       
    76 
       
    77 NONSHARABLE_CLASS(CAFHChannelAssessmentModeSubscriber) : public CSubscriber
       
    78 	{
       
    79 public:
       
    80 	static CAFHChannelAssessmentModeSubscriber* NewL(CLinkMgrProtocol& aLinkMgrProtocol);
       
    81 private:
       
    82 	CAFHChannelAssessmentModeSubscriber(CLinkMgrProtocol& aLinkMgrProtocol);
       
    83 	void RunL();
       
    84 	};
       
    85 
       
    86 NONSHARABLE_CLASS(CAFHHostChannelClassificationSubscriber) : public CSubscriber
       
    87 	{
       
    88 public:
       
    89 	static CAFHHostChannelClassificationSubscriber* NewL(CLinkMgrProtocol& aLinkMgrProtocol);
       
    90 private:
       
    91 	CAFHHostChannelClassificationSubscriber(CLinkMgrProtocol& aLinkMgrProtocol);
       
    92 	void RunL();
       
    93 	};
       
    94 
       
    95 NONSHARABLE_CLASS(CRegistryRemoteTableSubscriber) : public CSubscriber
       
    96 	{
       
    97 public:
       
    98 	static CRegistryRemoteTableSubscriber* NewL(CLinkMgrProtocol& aLinkMgrProtocol);
       
    99 private:
       
   100 	CRegistryRemoteTableSubscriber(CLinkMgrProtocol& aLinkMgrProtocol);
       
   101 	void RunL();
       
   102 	};
       
   103 
       
   104 NONSHARABLE_CLASS(CAcceptPairedOnlySubscriber) : public CSubscriber
       
   105 	{
       
   106 public:
       
   107 	static CAcceptPairedOnlySubscriber* NewL(CLinkMgrProtocol& aLinkMgrProtocol);
       
   108 private:
       
   109 	CAcceptPairedOnlySubscriber(CLinkMgrProtocol& aLinkMgrProtocol);
       
   110 	void RunL();
       
   111 	};
       
   112 
       
   113 NONSHARABLE_CLASS(CDebugModeSubscriber) : public CSubscriber
       
   114 	{
       
   115 public:
       
   116 	static CDebugModeSubscriber* NewL(CLinkMgrProtocol& aLinkMgrProtocol);
       
   117 private:
       
   118 	CDebugModeSubscriber(CLinkMgrProtocol& aLinkMgrProtocol);
       
   119 	void RunL();
       
   120 	};
       
   121 
       
   122 #endif //#ifndef _SUBSCRIBERS_H