Просмотр одиночного сообщения
Old 27-10-2005, 16:19   #2
Alvarez
Registered User
 
Аватар для Alvarez
 
Сообщений: 120
Проживание: Хельсинки
Регистрация: 08-08-2005
Status: Offline
Репутация: 0
Smile

Попробуйте что нибудь типа

#include <rconnmon.h>

{

RConnectionMonitor monitor;
monitor.ConnectL();

TUint count;
TRequestStatus status;
TUint ids[15];

monitor.GetConnectionCount(count, status);
User::WaitForRequest(status);

if(status.Int() != KErrNone)
{
// handle error
}

// fill connections array in
TUint numSubConn;

for(TInt i = 1; i <=count; i++)
{
TInt ret = monitor.GetConnectionInfo(i, ids[i-1], numSubConn);
if(ret != KErrNone)
{
// error handling
}
}

// get signal strenght for the active connection ids[0]
TInt strength; // in DBm
monitor.GetIntAttribute(ids[0], 0, KSignalStrength, strength, status);
User::WaitForRequest(status);

if(status.Int() != KErrNone)
{
// handle error
}


// etc...

monitor.Close();

}

С уважением.
 
0
 
0
    Ответить с цитированием