equal
deleted
inserted
replaced
16 * file handles the Symbian specific server creation/deletation |
16 * file handles the Symbian specific server creation/deletation |
17 * activities, and adding/removing sessions. The actual STS |
17 * activities, and adding/removing sessions. The actual STS |
18 * functionality is handled in the STS class. |
18 * functionality is handled in the STS class. |
19 */ |
19 */ |
20 |
20 |
|
21 // Include Files |
21 #include "stsserver.h" |
22 #include "stsserver.h" |
22 #include "stsserversession.h" |
23 #include "stsserversession.h" |
23 #include "sts.h" |
24 #include "sts.h" |
24 |
25 |
25 // Total number of ranges |
26 // Total number of ranges |
87 CPolicyServer::TCustomResult result; |
88 CPolicyServer::TCustomResult result; |
88 |
89 |
89 switch (aMsg.Function()) |
90 switch (aMsg.Function()) |
90 { |
91 { |
91 case StsMsg_PlayTone: |
92 case StsMsg_PlayTone: |
|
93 case StsMsg_PlayToneAlarm: |
92 { |
94 { |
93 CSystemToneService::TToneType tone = |
95 CSystemToneService::TToneType tone = |
94 (CSystemToneService::TToneType) aMsg.Int0(); |
96 (CSystemToneService::TToneType) aMsg.Int0(); |
95 result = SecurityCheckTone(tone, aMsg, aMissing); |
97 result = SecurityCheckTone(tone, aMsg, aMissing); |
96 } |
98 } |
112 CPolicyServer::TCustomResult CStsServer::SecurityCheckAlarm( |
114 CPolicyServer::TCustomResult CStsServer::SecurityCheckAlarm( |
113 CSystemToneService::TAlarmType aAlarm, const RMessage2& /*aMsg*/, |
115 CSystemToneService::TAlarmType aAlarm, const RMessage2& /*aMsg*/, |
114 TSecurityInfo& /*aMissing*/) |
116 TSecurityInfo& /*aMissing*/) |
115 { |
117 { |
116 CPolicyServer::TCustomResult result; |
118 CPolicyServer::TCustomResult result; |
117 switch(aAlarm) |
119 switch (aAlarm) |
118 { |
120 { |
119 default: |
121 default: |
120 result = CPolicyServer::EPass; |
122 result = CPolicyServer::EPass; |
121 } |
123 } |
122 return result; |
124 return result; |
125 CPolicyServer::TCustomResult CStsServer::SecurityCheckTone( |
127 CPolicyServer::TCustomResult CStsServer::SecurityCheckTone( |
126 CSystemToneService::TToneType aTone, const RMessage2& /*aMsg*/, |
128 CSystemToneService::TToneType aTone, const RMessage2& /*aMsg*/, |
127 TSecurityInfo& /*aMissing*/) |
129 TSecurityInfo& /*aMissing*/) |
128 { |
130 { |
129 CPolicyServer::TCustomResult result; |
131 CPolicyServer::TCustomResult result; |
130 switch(aTone) |
132 switch (aTone) |
131 { |
133 { |
132 default: |
134 default: |
133 result = CPolicyServer::EPass; |
135 result = CPolicyServer::EPass; |
134 } |
136 } |
135 return result; |
137 return result; |