usbengines/usbotgwatcher/src/cusbnotifier.cpp
changeset 0 1e05558e2206
child 20 a15c582fbf97
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/usbengines/usbotgwatcher/src/cusbnotifier.cpp	Thu Dec 17 09:14:30 2009 +0200
@@ -0,0 +1,67 @@
+/*
+* Copyright (c) 2009 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:  Base classes for Usb notifier wrapper
+ *
+*/
+
+
+#include "cusbnotifmanager.h"
+#include "cusbnotifier.h"
+ 
+#include "debug.h"
+#include "panic.h"
+
+// ======== MEMBER FUNCTIONS ========
+
+// ---------------------------------------------------------------------------
+// Desctructor
+// ---------------------------------------------------------------------------
+//
+CUsbNotifier::~CUsbNotifier()
+    {
+        FLOG( _L( "[USBOTGWATCHER]\tCUsbNotifier::~CUsbNotifier" ) );
+    }
+
+// ---------------------------------------------------------------------------
+// Getter for returning if the notifier needs input from end-user
+// ---------------------------------------------------------------------------
+//
+TBool CUsbNotifier::IsFeedbackNeeded() const
+    {
+    return iIsFeedbackNeeded;
+    }
+
+// ---------------------------------------------------------------------------
+// C++ constructor
+// ---------------------------------------------------------------------------
+//
+CUsbNotifier::CUsbNotifier(CUsbNotifManager* aNotifManager, TUid aCat,
+        TUint aNotifId) :
+    iNotifManager(aNotifManager), iCat(aCat), iNotifId(aNotifId),
+            iIsFeedbackNeeded(EFalse)
+    {
+        FLOG( _L( "[USBOTGWATCHER]\tCUsbNotifier::CUsbNotifier" ) );
+    }
+
+// ---------------------------------------------------------------------------
+// Set by child-classe if the concrete notifier needs feedback from end-user
+// ---------------------------------------------------------------------------
+//
+void CUsbNotifier::SetFeedbackNeeded()
+    {
+        FLOG( _L( "[USBOTGWATCHER]\tCUsbNotifier::SetFeedbackNeeded" ) );
+    iIsFeedbackNeeded = ETrue;
+    }
+
+// End of file