Hi All,

Thanks in advance....

I am writing code to handle events generated while downloading and uploading data for my S60 3rd Edition Mobile phone.

Here is the code:
###### .h file ######

#include <rconnmon.h>

class ConnectionObserverublic MConnectionMonitorObserver
{
public:
static ConnectionObserver* NewL();
void EventL(const CConnMonEventBase & aConnMonEvent);
~ConnectionObserver();
TUint GetDownLoadData();

private:
ConnectionObserver();
void ConstructL();

private:
RConnectionMonitor iConnMon;
CConnMonCreateConnection* eventCreate;
TUint connectionId;
TRequestStatus status;

TUint dl;
};

##### in .CPP ######

void ConnectionObserver::ConstructL()
{
TInt err = iConnMon.ConnectL();
}
----------------
iConnMon.NotifyEventL( *this );
----------------
void ConnectionObserver::EventL(const CConnMonEventBase &aEvent)
{
switch(aEvent.EventType())
{
case EConnMonCreateConnection:
{
eventCreate = (CConnMonCreateConnection*)& aEvent;
connectionId = eventCreate->ConnectionId();
iConnMon.GetUintAttribute( connectionId, 0, KDownlinkData, dl, status);
//iConnMon.GetUintAttribute(connectionId, 0, KDownlinkData, dl, status);
break;
}
case EConnMonDeleteConnection:
{
CConnMonDeleteConnection* eventDelete;
eventDelete = (CConnMonDeleteConnection*)& aEvent;
TUint connectionId = eventDelete->ConnectionId();
TUint totalDlVolume = eventDelete->DownlinkData();
TUint totalUlVolume = eventDelete->UplinkData();
TBool authDelete = eventDelete->AuthoritativeDelete();
break;
}

case EConnMonDownlinkDataThreshold:
{
CConnMonEventDownlinkDataThreshold *eventDlData;
eventDlData = (CConnMonEventDownlinkDataThreshold*)& aEvent;
TUint connectionId = eventDlData->ConnectionId();
TUint dlVolume = eventDlData->DownlinkData();
break;
}
}

then i am doing
iConnMon.Close();


Note: I am calling NotifyEvent after fetching every event for next event.

Now my problem is when i download any data then i am getting "EConnMonCreateConnection" event. But when i disconnect i am not getting any "Notification". What i needed is Notification when any data is downloaded on my mobile phone.

Please help me....

Thanks
-Shrinivas