CLbtSessionTrigger Class Reference

#include <mw/lbtsessiontrigger.h>

class CLbtSessionTrigger : public CLbtTriggerEntry

Inherits from

Public Member Functions
~CLbtSessionTrigger()
IMPORT_C CLbtSessionTrigger *NewL()
IMPORT_C CLbtSessionTrigger *NewL(const TDesC &, TLbtTriggerState, CRequestor::TRequestorType, CRequestor::TRequestorFormat, const TDesC &, TUid, CLbtTriggerConditionBase *)
IMPORT_C CLbtSessionTrigger *NewL(const TDesC &, TLbtTriggerState, const RRequestorStack &, TUid, CLbtTriggerConditionBase *)
IMPORT_C CLbtSessionTrigger *NewLC()
virtual IMPORT_C TTypeType()
Protected Member Functions
virtual voidDoExternalizeL(RWriteStream &)
virtual voidDoInternalizeL(RReadStream &)
Inherited Enumerations
CLbtTriggerEntry:TAttribute
CLbtTriggerEntry:TLbtTriggerState
CLbtTriggerEntry:TType
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CLbtTriggerEntry::CLbtTriggerEntry()
CLbtTriggerEntry::ExternalizeL(RWriteStream &)const
CLbtTriggerEntry::GetCondition()
CLbtTriggerEntry::GetCondition()const
CLbtTriggerEntry::GetRequestorsL(RRequestorStack &)const
CLbtTriggerEntry::Id()const
CLbtTriggerEntry::InternalizeL(RReadStream &)
CLbtTriggerEntry::ManagerUi()const
CLbtTriggerEntry::Name()const
CLbtTriggerEntry::SetCondition(CLbtTriggerConditionBase *)
CLbtTriggerEntry::SetId(TLbtTriggerId)
CLbtTriggerEntry::SetManagerUi(TUid)
CLbtTriggerEntry::SetNameL(const TDesC &)
CLbtTriggerEntry::SetRequestorL(CRequestor::TRequestorType,CRequestor::TRequestorFormat,const TDesC &)
CLbtTriggerEntry::SetRequestorsL(const RRequestorStack &)
CLbtTriggerEntry::SetState(TLbtTriggerState)
CLbtTriggerEntry::SetTimeToRearm(TInt)
CLbtTriggerEntry::State()const
CLbtTriggerEntry::TimeToRearm()const
CLbtTriggerEntry::~CLbtTriggerEntry()

Detailed Description

Concrete class representing session trigger entries.

Session triggers are not stored in persistent storage. They are deleted by Location Triggering Server if the client application's subsession to the server is closed or if the client calls RLbt::DeleteTriggerL().

Client application shall make request to Location Triggering Server to receive session trigger firing event.

See also: RLbt

library
lbt.lib
Since
S60 5.1

Constructor & Destructor Documentation

~CLbtSessionTrigger ( )

IMPORT_C~CLbtSessionTrigger()

Destructor

Member Function Documentation

DoExternalizeL ( RWriteStream & )

voidDoExternalizeL(RWriteStream &aStream)const [protected, virtual]

Reimplemented from CLbtTriggerEntry::DoExternalizeL(RWriteStream &)const

Externalize method that subclass must implement.

ParameterDescription
aStreamStream to which the object should be externalized.

DoInternalizeL ( RReadStream & )

voidDoInternalizeL(RReadStream &aStream)[protected, virtual]

Reimplemented from CLbtTriggerEntry::DoInternalizeL(RReadStream &)

Internalize method that subclass must implement.

ParameterDescription
aStreamStream from which the object should be internalized.

NewL ( )

IMPORT_C CLbtSessionTrigger *NewL()[static]

Allocates and constructs a new session trigger entry.

In returned object, default values are set to the attributes of the trigger. The default values are
  • Trigger Id is KLbtNullTriggerId.

  • Trigger Name is an empty string.

  • Requestors are not set.

  • Manager UI is not set(KNullUid).

  • Trigger condition is not set.

Returns: Pointer to the new session trigger entry.

NewL ( const TDesC &, TLbtTriggerState, CRequestor::TRequestorType, CRequestor::TRequestorFormat, const TDesC &, TUid, CLbtTriggerConditionBase * )

IMPORT_C CLbtSessionTrigger *NewL(const TDesC &aName,
TLbtTriggerStateaState,
CRequestor::TRequestorTypeaRequestorType,
CRequestor::TRequestorFormataRequestorFormat,
const TDesC &aRequestorData,
TUidaManagerUi,
CLbtTriggerConditionBase *aCondition
)[static]

Allocates and constructs a new session trigger entry with specified attribute values.

Since
S60 5.1
leave
KErrArgument If the name of the trigger is longer than KLbtMaxNameLength.
leave
Other standard symbian error code, such as KErrNoMemory, KErrGeneral, etc.
ParameterDescription
aNameThe name of the trigger entry.
aStateThe state of trigger entry.
aRequestorTypeIdentifies the type of requestor, a service or a contact.
aRequestorFormatDetermines the type of data held in aRequestorData
aRequestorDataRequestor data. Can be a telephone number, a URL etc.
aManagerUiThe UID of the manager UI application.
aConditionPointer to the new trigger condition object. This object takes the ownership of aCondition.

Returns: Pointer to the new session trigger entry.

NewL ( const TDesC &, TLbtTriggerState, const RRequestorStack &, TUid, CLbtTriggerConditionBase * )

IMPORT_C CLbtSessionTrigger *NewL(const TDesC &aName,
TLbtTriggerStateaState,
const RRequestorStack &aRequestors,
TUidaManagerUi,
CLbtTriggerConditionBase *aCondition
)[static]

Allocates and constructs a new session trigger entry with specified attribute values.

leave
KErrArgument If the name of the trigger is longer than KLbtMaxNameLength.
leave
Other standard symbian error code, such as KErrNoMemory, KErrGeneral, etc.
ParameterDescription
aNameThe name of the trigger entry.
aStateThe state of trigger entry.
aRequestorsThe requestor for the service. This object does not take ownership of aRequestors.
aManagerUiThe UID of manager UI application.
aConditionPointer to the new trigger condition object. This object takes the ownership of aCondition.

Returns: Pointer to the new session trigger entry.

NewLC ( )

IMPORT_C CLbtSessionTrigger *NewLC()[static]

Allocates and constructs a new session trigger entry. The constructed object is pushed onto cleanup stack.

In returned object, default values are set to the attributes of the trigger. The default values are
  • Trigger Id is KLbtNullTriggerId.

  • Trigger Name is an empty string.

  • Requestors are not set.

  • Manager UI is not set(KNullUid).

  • Trigger condition is not set.

Returns: Pointer to the new session trigger entry.

Type ( )

IMPORT_C TTypeType()const [virtual]

Reimplemented from CLbtTriggerEntry::Type()const

Get the type of the trigger entry, CLbtTriggerEntry::ESession.

Returns: CLbtTriggerEntry::ESession.