×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    May 2006
    Posts
    86

    TSubConnectionInfoGprsUmts & TConnectionInfoV2

    hi
    i'm trying to find out the active connection on symbain 9.2
    but i can't find this class TSubConnectionInfoGprsUmts & TConnectionInfoV2 ..
    i'm working according to nokia example "Connection Management"


    any idea ?

    nimco

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    30

    Re: TSubConnectionInfoGprsUmts & TConnectionInfoV2

    To enumerate connections, you'll need to use the RConnection API.

    Here's a simple example.
    Note: error checking is disabled and async methods called synchronously!

    RSocketServ ss;
    ss.Connect();

    RConnection conn;
    conn.open(ss);

    // Enumerate connections return number of underlying interfaces
    TUint count;
    conn.EnumerateConnections(count);
    TPckgBuf<TConnectionInfoV2> connectionInfo;

    for (TUint interface = 0; interface < count; ++interface)
    {
    GetConnectionInfo(interface, connectionInfo);
    // Do whatever you wish with the connectionInfo...
    }

  3. #3
    Regular Contributor
    Join Date
    May 2006
    Posts
    86

    Re: TSubConnectionInfoGprsUmts & TConnectionInfoV2

    hi
    i can't find TConnectionInfoV2
    i get undefined identifier TConnectionInfoV2.
    what header file should i include

    nimco

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: TSubConnectionInfoGprsUmts & TConnectionInfoV2

    i get undefined identifier TConnectionInfoV2.
    what header file should i include
    Good guess, you need a header. Consider searching for TConnectionInfoV2 in epoc32\include.

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    30

    Re: TSubConnectionInfoGprsUmts & TConnectionInfoV2

    You'll find it in es_enum.h.

    As a side note, did it not occur to you to search *.h files epoc32/include folder for TConnectionInfoV2? How difficult is that?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •