CSensrvTransactionQueue Class Reference
class CSensrvTransactionQueue : public CBase
|
Simple to use transaction queue.
Nested Classes and Structures
Constructor & Destructor Documentation
CSensrvTransactionQueue(TBool)
CSensrvTransactionQueue
|
(
|
TBool
|
aOwned
|
)
|
[private]
|
~CSensrvTransactionQueue()
~CSensrvTransactionQueue
|
(
|
)
|
[virtual]
|
Member Functions Documentation
Add(CSensrvTransaction *, TBool)
Adds transaction to the the queue
Parameters
CSensrvTransaction
* aTransaction
|
The transaction to be added.
|
TBool
aLast = ETrue
|
If ETrue, transaction is added to the end of the queue, otherwise it is added to the beginning.
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
2nd phase of construction
FindTransactionPtr(CSensrvTransaction *)
Gets pointer to the
TLinkableTransactionPtr
in queue corresponding to specified transaction. Transaction stays in the queue.
First()
Gets pointer to first transaction in queue. Transaction stays in the queue.
IsEmpty()
TBool
|
IsEmpty
|
(
|
)
|
[inline]
|
NewL(TBool)
Two phase constructor.
-
Since
-
S60 5.0
-
Exceptions
-
KErrNoMemory
|
Out of memory.
|
Parameters
TBool
aOwned
|
Indicates if queue owns transactions or is it used simply to store the pointers. If transactions are owned, deleting queue will also delete all transactions.
|
Remove(CSensrvTransaction *, TRemovalType)
Removes specified transaction from queue, if it is there. If queue owns the transactions, the removed transaction may be completed and deleted, depending on removal type.
Remove(CSensrvSession *)
Removes all transactions initiated by specified session from queue. If queue owns the transactions, the transactions are completed with KErrCancel and are deleted. Otherwise does not delete or complete transactions.
RemoveAll()
Removes all transactions.
RemoveObsolete(const TTime &)
TInt
|
RemoveObsolete
|
(
|
const
TTime
&
|
aCutoffTime
|
)
|
|
Removes all transactions with timestamp older than specified cutoff time.
Parameters
const
TTime
& aCutoffTime
|
Transactions older that this time will be removed.
|
RemovePtr(TLinkableTransactionPtr *, TRemovalType)
Removes linkable transaction pointer and deletes it. If transactions are owned, they are completed with KErrCancel or whatever error code they currently have.
Member Enumerations Documentation
Enum TRemovalType
Removal type specifies what should be done to removed transaction.
Enumerators
ERemovalTypeUndefined
|
|
ERemovalTypeComplete
|
|
ERemovalTypeCancel
|
|
ERemovalTypeTransfer
|
|
Member Data Documentation
RHeap * iHeap
Heap where the queue resides. Transactions must reside in the same heap. Not own.
TBool
iOwned
Indicates whether or not this queue owns the transactions it holds.
TSglQueIter< TLinkableTransactionPtr > iTransactionPtrIter
Iterator for transaction queue
TSglQue< TLinkableTransactionPtr > iTransactionPtrList
Holds transaction pointers of transactions. Queued pointer objects are owned.
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.