class TLbsNetSessionIdInt : public TLbsNetClassTypeBaseInt |
Session Identifiers are used to uniquely identify requests either generated by, or received by, a network protocol module.
TLbsNetSessionIdInt contains two fields - an owner and a request number. The owner is the UID of the component that created the request. The request number is used to uniquely identify a request by that component.
The request number may increment with each new request. However, this is not guaranteed. In some instances, the request number will be derived from details obtained by the network.
For requests generated by the network protocol module, the ECom implementation UID should be used as the session id owner. Where, requests originate from within the LBS subsystem, the owner will be the UID of the component that created the request. This will normally be the Network Request Handler.
MLbsNetworkProtocolObserver CLbsNetworkProtocolBase
Public Member Functions | |
---|---|
TLbsNetSessionIdInt() | |
TLbsNetSessionIdInt(TUid, TSessionNum) | |
IMPORT_C void | IncrSession() |
IMPORT_C TSessionNum | SessionNum() |
IMPORT_C TUid | SessionOwner() |
IMPORT_C void | SetSessionNum(TSessionNum) |
IMPORT_C void | SetSessionOwner(TUid) |
IMPORT_C TBool | operator!=(const TLbsNetSessionIdInt &) |
IMPORT_C TBool | operator==(const TLbsNetSessionIdInt &) |
Inherited Functions | |
---|---|
TLbsNetClassTypeBaseInt::ClassSize()const | |
TLbsNetClassTypeBaseInt::ClassType()const | |
TLbsNetClassTypeBaseInt::TLbsNetClassTypeBaseInt() |
Public Member Type Definitions | |
---|---|
typedef | TUint32 TSessionNum |
Protected Attributes | |
---|---|
TUint32 | iSessionNum |
TUid | iSessionOwner |
Inherited Attributes | |
---|---|
TLbsNetClassTypeBaseInt::iClassSize | |
TLbsNetClassTypeBaseInt::iClassType |
IMPORT_C | TLbsNetSessionIdInt | ( | ) |
Default constructor for TLbsNetSessionIdInt
Sets the session owner to TUid::Null() and the session request number to 0
IMPORT_C | TLbsNetSessionIdInt | ( | TUid | aSessionOwner, |
TSessionNum | aSessionNum | |||
) |
Constructor for TLbsNetSessionIdInt
TUid aSessionOwner | The session owner |
TSessionNum aSessionNum | The request number |
IMPORT_C void | SetSessionNum | ( | TSessionNum | aSessionNum | ) |
Set the request number
TSessionNum aSessionNum | The request number |
IMPORT_C void | SetSessionOwner | ( | TUid | aSessionOwner | ) |
Set the session owner
TUid aSessionOwner | The session owner |
IMPORT_C TBool | operator!= | ( | const TLbsNetSessionIdInt & | aSessionId | ) | const |
Tests if two session Ids are not equal
const TLbsNetSessionIdInt & aSessionId |
IMPORT_C TBool | operator== | ( | const TLbsNetSessionIdInt & | aSessionId | ) | const |
Tests if two session Ids are equal
const TLbsNetSessionIdInt & aSessionId |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.