80 // |
80 // |
81 void CSensrvChannel::ConstructL() |
81 void CSensrvChannel::ConstructL() |
82 { |
82 { |
83 COMPONENT_TRACE( ( _L( "Sensor Server - CSensrvChannel::ConstructL()" ) ) ); |
83 COMPONENT_TRACE( ( _L( "Sensor Server - CSensrvChannel::ConstructL()" ) ) ); |
84 |
84 |
|
85 // coverity[SIZECHECK] |
85 iChannelQueue = CSensrvTransactionQueue::NewL( ETrue ); |
86 iChannelQueue = CSensrvTransactionQueue::NewL( ETrue ); |
86 |
87 |
87 iChannelInfo.iChannelGroup = TSensrvResourceChannelInfo::ESensrvChannelGroupNotSolved; |
88 iChannelInfo.iChannelGroup = TSensrvResourceChannelInfo::ESensrvChannelGroupNotSolved; |
88 |
89 |
89 COMPONENT_TRACE( ( _L( "Sensor Server - CSensrvChannel::ConstructL - return" ) ) ); |
90 COMPONENT_TRACE( ( _L( "Sensor Server - CSensrvChannel::ConstructL - return" ) ) ); |
977 BUFFER_TRACE( (_L( "#### Recalculated buffering count: %d" ), previousLow) ); |
978 BUFFER_TRACE( (_L( "#### Recalculated buffering count: %d" ), previousLow) ); |
978 |
979 |
979 return previousLow; |
980 return previousLow; |
980 } |
981 } |
981 |
982 |
982 // --------------------------------------------------------------------------- |
983 |
983 // CSensrvChannel::GetAffectedClients |
|
984 // |
|
985 // Client is considered as "affected" if the channel is opened by the client. |
|
986 // When the channel is open, channel listener also exists. |
|
987 // Priorities are queried from ChannelListener. |
|
988 // --------------------------------------------------------------------------- |
|
989 // |
|
990 void CSensrvChannel::GetAffectedClients( RArray<TInt>& aAffectedClients, |
|
991 TSecureId aCallerSecureId ) |
|
992 { |
|
993 COMPONENT_TRACE( ( _L( "Sensor Server - CSensrvChannel::GetAffectedClients()" ) ) ); |
|
994 |
|
995 TInt count(iListenerList.Count()); |
|
996 for (TInt i=0; i < count; i++) |
|
997 { |
|
998 if (aCallerSecureId == iListenerList[i]->Session().SecureId() ) |
|
999 { |
|
1000 //Filter away |
|
1001 } |
|
1002 else |
|
1003 { |
|
1004 aAffectedClients.Append( iListenerList[i]->Priority() ); |
|
1005 } |
|
1006 } |
|
1007 |
|
1008 COMPONENT_TRACE( ( _L( "Sensor Server - CSensrvChannel::GetAffectedClients - %d client(s) found - return" ), count ) ); |
|
1009 } |
|
1010 |
984 |
1011 // --------------------------------------------------------------------------- |
985 // --------------------------------------------------------------------------- |
1012 // Creates a new condition evaluator or returns an existing one. |
986 // Creates a new condition evaluator or returns an existing one. |
1013 // Once the evaluator is created, it will not be destroyed until channel |
987 // Once the evaluator is created, it will not be destroyed until channel |
1014 // is closed. |
988 // is closed. |