--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bluetoothengine/btnotif/inc/btninqnotifier.h Wed Sep 01 12:20:04 2010 +0100
@@ -0,0 +1,100 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declares Bluetooth device inquiry notifier class.
+*
+*/
+
+
+#ifndef BTNINQNOTIFIER_H
+#define BTNINQNOTIFIER_H
+
+// INCLUDES
+
+#include "btnotifier.h" // Base class
+#include "btninqui.h"
+#include <btextnotifiers.h> // Bluetooth notifiers API
+
+// FORWARD DECLARATIONS
+
+// CLASS DECLARATION
+/**
+* This class is used in Bluetooth device search.
+*/
+NONSHARABLE_CLASS(CBTInqNotifier): public CBTNotifierBase, public MBTNDeviceSearchObserver
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CBTInqNotifier* NewL();
+
+ /**
+ * Destructor.
+ */
+ virtual ~CBTInqNotifier();
+
+
+ private: // Functions from base classes
+ /**
+ * From CBTNotifierBase Called when a notifier is first loaded.
+ * @param None.
+ * @return A structure containing priority and channel info.
+ */
+ TNotifierInfo RegisterL();
+
+ /**
+ * From CBTNotifierBase The notifier has been deactivated
+ * so resources can be freed and outstanding messages completed.
+ * @param None.
+ * @return None.
+ */
+ void Cancel();
+
+ /**
+ * From CBTNotifierBase Used in asynchronous notifier launch to
+ * store received parameters into members variables and
+ * make needed initializations.
+ * @param aBuffer A buffer containing received parameters
+ * @param aReturnVal The return value to be passed back.
+ * @param aMessage Should be completed when the notifier is deactivated.
+ * @return None.
+ */
+ void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
+
+ /**
+ * From MBTNDeviceSearchObserver Called when device search and selection completes.
+ * @param aErr Error code
+ * @param aDevice Response parameters to caller
+ * defined in epoc32\include\btextnotifiers.h
+ */
+ void NotifyDeviceSearchCompleted(TInt aErr, const TBTDeviceResponseParams& aDevice = TBTDeviceResponseParams());
+
+ private:
+
+ /**
+ * C++ default constructor.
+ */
+ CBTInqNotifier();
+
+ void LaunchInquiryL(const TBTDeviceClass& aDesiredDevice);
+
+ private: // Data
+
+ CBTInqUI* iUi; // User interface module
+ };
+
+#endif
+
+// End of File