equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef NSPTESTCONSOLESTREAM_H |
|
19 #define NSPTESTCONSOLESTREAM_H |
|
20 |
|
21 class CSdpMediaField; |
|
22 |
|
23 class CTestConsoleStream : public CBase |
|
24 { |
|
25 public: // Enums |
|
26 enum TStreamState |
|
27 { |
|
28 EIdle, |
|
29 EPrepared, |
|
30 EStreaming, |
|
31 EStopped |
|
32 }; |
|
33 |
|
34 public: // Methods |
|
35 static CTestConsoleStream* NewL(); |
|
36 static CTestConsoleStream* NewLC(); |
|
37 ~CTestConsoleStream(); |
|
38 |
|
39 TInt EncodeL( CSdpMediaField& aMediaField ); |
|
40 TInt DecodeL( CSdpMediaField& aMediaField ); |
|
41 TInt Start(); |
|
42 TInt Stop(); |
|
43 |
|
44 const TDesC8& LocalAddress() const; |
|
45 const TDesC8& RemoteAddress() const; |
|
46 TUint LocalPort() const; |
|
47 TUint RemotePort() const; |
|
48 |
|
49 private: // Methods |
|
50 CTestConsoleStream(); |
|
51 void ConstructL(); |
|
52 |
|
53 private: // data |
|
54 TStreamState iState; |
|
55 HBufC8* iLocalAddress; |
|
56 TUint iLocalPort; |
|
57 HBufC8* iRemoteAddress; |
|
58 TUint iRemotePort; |
|
59 |
|
60 }; |
|
61 |
|
62 #endif // NSPTESTCONSOLESTREAM_H |