//-----------------------------------------------------------------------------
// CAknDynamicSoftNotifier::CancelDynamicSoftNotificationL
//-----------------------------------------------------------------------------
//
EXPORT_C void CAknDynamicSoftNotifier::CancelDynamicNotificationL(
    TInt aNoteId )
    {
    // parameters are unrelevant
    TAknDynamicSoftNotificationParams params( KAknPriorityOfCancelMessage );
    SendMessageL( aNoteId, 0, ETrue, EFalse, params );
    StopObserving( aNoteId );
    }
// -----------------------------------------------------------------------------
// CHWRMFmtxWatcherPlugin::ProcessCommandL
// -----------------------------------------------------------------------------
//
void CHWRMFmtxWatcherPlugin::ProcessCommandL( const TInt aCommandId,
                                              const TUint8 aTransId,
                                              TDesC8& /*aData*/ )
    {
    FUNC_LOG;
    
    INFO_LOG2( "CHWRMFmtxWatcherPlugin::ProcessCommandL, (0x%x, 0x%x)", 
        aCommandId, aTransId );

    TInt retVal( KErrNone );

    switch (aCommandId)
        {
        case HWRMFmTxCommand::EConnStatusCmdId:
            TRAP( retVal, GetStatusL() );
            break;
        
        case HWRMFmTxCommand::EStartObservingCmdId:
            TRAP( retVal, StartObservingL() );
            break;
            
        case HWRMFmTxCommand::EStopObservingCmdId:
            StopObserving();
            break;
            
        default :
            User::Leave( KErrNotSupported );
            break;
        }

    // Create new timer for response.
    CHWRMFmtxPluginTimer* timer = CHWRMFmtxPluginTimer::NewL( aCommandId, aTransId, retVal, *this );
    CleanupStack::PushL( timer );
    iTimers.AppendL( timer );
    CleanupStack::Pop( timer );
    INFO_LOG1( "CHWRMFmtxWatcherPlugin::ProcessCommandL, timers now %d", 
        iTimers.Count() );
    }
//===============================================================
//UEventObserver
//===============================================================
UEventObserver::~UEventObserver()
{
    StopObserving();
}