|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The functions defined in this file provide constant data which is |
|
15 // used by both the Streaming Test Agent server and client side implementations. |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 @test |
|
23 */ |
|
24 |
|
25 #ifndef STACOMMON_INL |
|
26 #define STACOMMON_INL |
|
27 |
|
28 #include "stacommon.h" |
|
29 #include "sratemplate.inl" |
|
30 |
|
31 namespace StreamAccess |
|
32 { |
|
33 inline TVersion StaVersion() |
|
34 /** |
|
35 This function is defined because there is no literal constructor for TVersion. |
|
36 |
|
37 @return Defines a version number which the client side code can use |
|
38 to open the Streaming Test Agent server. If the client code |
|
39 was built with a higher version number, then it cannot open |
|
40 the Streaming Test Agent Server. This ensures that a client |
|
41 only talks to the Streaming Test Agent Server version is at |
|
42 least as high as its own. |
|
43 */ |
|
44 { |
|
45 TVersion v(KStaVerMajor, KStaVerMinor, KStaVerBuild); |
|
46 return v; |
|
47 } |
|
48 |
|
49 inline TUidType StaImageFullUid() |
|
50 /** |
|
51 This function is defined because there is no literal constructor |
|
52 for TUidType. It returns the Streaming Test Agent executable's UID, which is used |
|
53 to ensure the client side code launches the correct server process, as opposed |
|
54 to another application which uses the same executable name. |
|
55 |
|
56 @return TUidType The Streaming Test Agent executable's full UID. |
|
57 */ |
|
58 { |
|
59 TUidType t(KExecutableImageUid, KNullUid, KUidStreamingTestAgent); |
|
60 return t; |
|
61 } |
|
62 |
|
63 } // End of the namespace StreamAccess |
|
64 |
|
65 #endif /*STACOMMON_INL*/ |