|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: The implementation for presentation elements. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_IRSESSIONPARAMS_H |
|
20 #define T_IRSESSIONPARAMS_H |
|
21 |
|
22 #include <e32cmn.h> |
|
23 |
|
24 // Browse Log Url Class |
|
25 class TIRBrowseLog |
|
26 { |
|
27 public: |
|
28 //browse url |
|
29 TBuf<256> iBrowseUrl; |
|
30 //time stamp |
|
31 TBuf<32> iTimeStamp; |
|
32 //connected from |
|
33 TBuf<16> iCurrentNetwork; |
|
34 TInt iStatus; //TO check the status for browse url,1 for channel BRowse url |
|
35 }; |
|
36 |
|
37 |
|
38 // Channel Server Results |
|
39 class TIRServer |
|
40 { |
|
41 public: |
|
42 //channel url |
|
43 TBuf<256> iServerUrl; |
|
44 //channel url connection result |
|
45 TBuf<32> iServerResult; |
|
46 TInt iCount; |
|
47 }; |
|
48 |
|
49 // Song Recog Log |
|
50 class TIRSongRecogLog |
|
51 { |
|
52 public: |
|
53 TBuf<64> iTimeStamp; |
|
54 }; |
|
55 |
|
56 enum TTerminationStatus |
|
57 { |
|
58 //terminated by user |
|
59 EUserTerminated = 0, |
|
60 //no connection to the server |
|
61 ENoConnectionToServer, |
|
62 //no connection to the network |
|
63 ENoConnectionToNetwork, |
|
64 }; |
|
65 |
|
66 enum TConnectedFrom |
|
67 { |
|
68 //when session started straight from station details in iSDS |
|
69 EIRIsds = 0, |
|
70 //when session started from a station details saved to iRAPP favorites and the station is not from iSDS (channel_Id = 0 ) |
|
71 EIRPresetAdhoc, |
|
72 //when session started from a station details saved to iRAPP favorites and the station is from iSDS (channel_ID is iSDS channel_ID) |
|
73 EIRPresetIsds, |
|
74 //when session started from iRAPP 'station play history' and the station is not from iSDS (channel_Id = 0 ) |
|
75 EIRHistoryAdhoc, |
|
76 //when session started from iRAPP 'station play history' and the station is from iSDS (channel_ID is iSDS channel_ID ) |
|
77 EIRHistoryIsds, |
|
78 //when session started from manually entered stream url |
|
79 EIRAdhocManual, |
|
80 //when iRAPP session started/triggered from any iRAPP external client e.g. Browser or SMS/MMS |
|
81 EIRAdhocExternal |
|
82 }; |
|
83 |
|
84 enum TResponse |
|
85 { |
|
86 //connected |
|
87 EIRConnected = 0, |
|
88 //connection failed because server is full (not responding) |
|
89 EIRFull, |
|
90 //connection timed out |
|
91 EIRConnTimeOut, |
|
92 //connection failed generic senerio like invalid url |
|
93 EIRConnFailed, |
|
94 }; |
|
95 |
|
96 #endif //T_IRSESSIONPARAMS_H |