CMPXClientList Class Reference
class CMPXClientList : public CBase
|
Manages a list of clients.
mpxcommon.lib
Public Member Functions
|
|
~CMPXClientList
()
|
IMPORT_C void
|
AddClientL
(
TThreadId
,
CMPXMessageQueue
*)
|
IMPORT_C void
|
AddClientL
(
TThreadId
,
TInt
,
CMPXMessageQueue
*)
|
IMPORT_C void
|
AddClientL
(
TThreadId
,
TInt
,
CMPXMessageQueue
*, const
TInt
)
|
IMPORT_C void
|
AddSubscriptionL
(
TInt
,
CMPXSubscription
*)
|
IMPORT_C
TInt
|
ClientCategory
(
TInt
)
|
IMPORT_C
TInt
|
ClientCount
()
|
IMPORT_C
TInt
|
ClientMode
(
TInt
)
|
IMPORT_C
TArray
<
TProcessId
>
|
ClientProcessList
()
|
CMPXMessage
*
|
ConvertMsgLC
(const
TMPXMessage
&)
|
IMPORT_C
TInt
|
Find
(const
CMPXMessageQueue
&)
|
IMPORT_C
TInt
|
Find
(
TThreadId
)
|
IMPORT_C
TBool
|
IsClient
(
TThreadId
)
|
IMPORT_C
CMPXClientList
*
|
NewL
(MMPXClientlistObserver *)
|
IMPORT_C void
|
RemoveAllSubscriptionsL
(
TInt
)
|
IMPORT_C void
|
RemoveClient
(
TInt
)
|
IMPORT_C void
|
RemoveSubscriptionL
(
TInt
, const
CMPXSubscription
&)
|
IMPORT_C void
|
SendMsg
(const
CMPXMessage
*,
TInt
)
|
IMPORT_C void
|
SendMsg
(
TInt
, const
CMPXMessage
*,
TInt
)
|
void
|
SendMsgL
(const
TMPXMessage
&)
|
void
|
SendMsgL
(
TInt
, const
TMPXMessage
&)
|
IMPORT_C
TInt
|
SendSyncMsg
(const
CMPXMessage
*)
|
IMPORT_C
TInt
|
SetPrimaryClient
(
CMPXMessageQueue
&)
|
Constructor & Destructor Documentation
CMPXClientList(MMPXClientlistObserver *)
CMPXClientList
|
(
|
MMPXClientlistObserver *
|
aObserver
|
)
|
[private]
|
Parameters
MMPXClientlistObserver * aObserver
|
observer of the client list
|
~CMPXClientList()
IMPORT_C
|
~CMPXClientList
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddClientL(TThreadId, CMPXMessageQueue *)
Add another client into the list.
-
Since
-
S60 3.2.3
-
leave
-
The function leaves with one of the system wide error codes, if the operation fails.
AddClientL(TThreadId, TInt, CMPXMessageQueue *)
Add another client into the list.
-
Since
-
S60 3.2.3
-
leave
-
The function leaves with one of the system wide error codes, if the operation fails.
AddClientL(TThreadId, TInt, CMPXMessageQueue *, const TInt)
Add another client into the list.
-
Since
-
S60 3.2.3
-
leave
-
The function leaves with one of the system wide error codes, if the operation fails.
Parameters
TThreadId
aId
|
thread id of the client
|
TInt
aMode
|
client mode
|
CMPXMessageQueue
* aMsgQueue
|
message queue for the client
|
const
TInt
aCategory
|
category of the client, refer to TMPXCategory
|
AddSubscriptionL(TInt, CMPXSubscription *)
Adds a subscription to a client identified by a specified position.
Parameters
TInt
aIndex
|
The position within the list where the client is.
|
CMPXSubscription
* aSubscription
|
subscription to add. Ownership is transferred.
|
ClientCategory(TInt)
IMPORT_C
TInt
|
ClientCategory
|
(
|
TInt
|
aIndex
|
)
|
const
|
Return client category.
-
Since
-
S60 3.2.3
-
panic
-
USER 0 if aIndex out of bound
Parameters
TInt
aIndex
|
index to the client
|
ClientCount()
IMPORT_C
TInt
|
ClientCount
|
(
|
)
|
const
|
ClientMode(TInt)
IMPORT_C
TInt
|
ClientMode
|
(
|
TInt
|
aIndex
|
)
|
const
|
Return client mode.
-
Since
-
S60 3.2.3
-
panic
-
USER 0 if aIndex out of bound
Parameters
TInt
aIndex
|
index to the client
|
ClientProcessList()
A list of process ids of all the clients in this list.
ClientsMatch(const CClientId &, const CClientId &)
TBool
|
ClientsMatch
|
(
|
const CClientId &
|
aClient1,
|
|
const CClientId &
|
aClient2
|
|
)
|
[private, static]
|
Comparison function. If the names are set in the client objects, then that's used to test for equality. Otherwise, if the thread ids are set, that's used. Else, it's assumed that the equality test is based on process ids.
Parameters
const CClientId & aClient1
|
client id of the client 1
|
const CClientId & aClient2
|
client id of the client 2
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
ConvertMsgLC(const TMPXMessage &)
Convert
TMPXMessage
into CMPXMessage.
-
Since
-
S60 3.2.3
-
leave
-
The function leaves with one of the system wide error codes, if the operation fails.
should not be used
Find(const CMPXMessageQueue &)
Find a client denoted by message queue in this list.
Find(TThreadId)
Find a client denoted by thread id in the list.
IsClient(TThreadId)
Is this (denoted by thread id) a client in this list?.
IsMsgSubscribedL(TInt, const CMPXMessage *)
Check if the msg subscribed by the client.
Parameters
TInt
aIndex
|
index to the client
|
const
CMPXMessage
* aMsg
|
message object, ownership not transferred.
|
NONSHARABLE_CLASS(CClientId)
NONSHARABLE_CLASS
|
(
|
CClientId
|
|
)
|
[private, inline]
|
Encapsulates a client: all the information associated with a client of the playback utility interface.
mpxcommon.lib
NewL(MMPXClientlistObserver *)
IMPORT_C
CMPXClientList
*
|
NewL
|
(
|
MMPXClientlistObserver *
|
aObserver = NULL
|
)
|
[static]
|
Parameters
MMPXClientlistObserver * aObserver = NULL
|
observer of the client list
|
RemoveAllSubscriptionsL(TInt)
IMPORT_C void
|
RemoveAllSubscriptionsL
|
(
|
TInt
|
aIndex
|
)
|
|
Removes all subscriptions from a client identified by a specified position.
Parameters
TInt
aIndex
|
The position within the list where the client is.
|
RemoveClient(TInt)
IMPORT_C void
|
RemoveClient
|
(
|
TInt
|
aIndex
|
)
|
|
Remove a client at a specified position.
-
Since
-
S60 3.2.3
-
panic
-
USER 130, if aIndex is out of bound
Parameters
TInt
aIndex
|
The position within the list from where the client is to be removed
|
RemoveSubscriptionL(TInt, const CMPXSubscription &)
Removes a subscription from a client identified by a specified position.
Parameters
TInt
aIndex
|
The position within the list where the client is.
|
const
CMPXSubscription
& aSubscription
|
subscription to remove.
|
SendMsg(const CMPXMessage *, TInt)
Dispatches message to all clients.
Parameters
const
CMPXMessage
* aMsg
|
message, pointer to message, ownership not transferred.
|
TInt
aError
|
error code
|
SendMsg(TInt, const CMPXMessage *, TInt)
Dispatches message to a client.
Parameters
TInt
aIndex
|
index to the client
|
const
CMPXMessage
* aMsg
|
message object, ownership not transferred.
|
TInt
aError
|
error code
|
SendMsgL(const TMPXMessage &)
Dispatches message to all clients.
-
Since
-
S60 3.2.3
-
leave
-
The function leaves with one of the system wide error codes, if the operation fails.
Use method
CMPXClientList::SendMsg
(const CMPXMessage* aMsg, TInt aError) instead.
SendMsgL(TInt, const TMPXMessage &)
Dispatches message to a client.
-
Since
-
S60 3.2.3
-
leave
-
The function leaves with one of the system wide error codes, if the operation fails.
Use method
CMPXClientList::SendMsg
(TInt aIndex, const CMPXMessage* aMsg, TInt aError) instead.
SendSyncMsg(const CMPXMessage *)
Send a sync message to the primary client
SetPrimaryClient(CMPXMessageQueue &)
Member Data Documentation
RArray< TProcessId > iClientProcesses
RPointerArray< CClientId > iClients
TIdentityRelation< CClientId > iIdentity
MMPXClientlistObserver * iObserver
MMPXClientlistObserver *
|
iObserver
|
[private]
|
CMPXMessageQueue * iPrimaryClient
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.