--- a/bluetoothengine/btui/btuidelegate/btdelegatevisibility.cpp Fri Aug 06 16:43:21 2010 +0300
+++ b/bluetoothengine/btui/btuidelegate/btdelegatevisibility.cpp Fri Sep 03 16:17:59 2010 +0300
@@ -44,6 +44,17 @@
{
delete mBtengSettings;
}
+
+
+/*!
+ Returns the supported editor types.
+ \return the sum of supported editor types
+ */
+int BtDelegateVisibility::supportedEditorTypes() const
+{
+ return BtDelegate::ChangeVisibility;
+}
+
/*!
* executes visibility delegate functionality, ie. calls CBTEngSettings to set the visibility mode;
* when operation completes, emits commandCompleted signal
@@ -56,7 +67,7 @@
if (mActiveHandling) {
// complete command with error
- emit commandCompleted(KErrInUse);
+ emit delegateCompleted(KErrInUse, this);
return;
}
mActiveHandling = true;
@@ -71,12 +82,12 @@
err = mBtengSettings->GetVisibilityMode( visibilityMode );
if (err) {
mActiveHandling = false;
- emit commandCompleted(err);
+ emit delegateCompleted(err, this);
return;
}
if (visibilityMode == mOperation) {
mActiveHandling = false;
- emit commandCompleted(KErrNone);
+ emit delegateCompleted(KErrNone, this);
return;
}
@@ -101,7 +112,7 @@
if (err) {
// complete command with error
mActiveHandling = false;
- emit commandCompleted(err);
+ emit delegateCompleted(err, this);
}
}
@@ -122,10 +133,10 @@
//Error handling has to be done, if value is not set properly.
mActiveHandling = false;
if (mOperation == aState) {
- emit commandCompleted(KErrNone);
+ emit delegateCompleted(KErrNone, this);
}
else {
- emit commandCompleted(KErrUnknown);
+ emit delegateCompleted(KErrUnknown, this);
}
}
}