1 /* |
1 /* |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: VOIP Audio Services Defines buffer type for VoIP data streaming. |
14 * Description: VOIP Audio Services Defines buffer type for VoIP data |
15 * |
15 * streaming. |
16 */ |
16 * |
|
17 */ |
17 |
18 |
18 |
19 #ifndef VOIPDATABUFFERIMPL_H |
19 #ifndef __VOIPDATABUFFERIMPL_H |
20 #define VOIPDATABUFFERIMPL_H |
20 #define __VOIPDATABUFFERIMPL_H |
|
21 |
21 |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 #include <voipdatabuffer.h> |
23 #include <voipdatabuffer.h> |
24 |
24 |
25 |
|
26 /** |
25 /** |
27 * CVoIPDataBuferImpl |
26 * CVoIPDataBuferImpl |
28 * ?description |
|
29 * @since S60 v5.0 |
|
30 */ |
27 */ |
31 NONSHARABLE_CLASS(CVoIPDataBufferImpl) : public CBase, |
28 NONSHARABLE_CLASS(CVoIPDataBufferImpl) : public CBase, |
32 public CVoIPJBDataBuffer |
29 public CVoIPJBDataBuffer |
33 { |
30 { |
34 public: |
31 public: |
35 /** |
32 /** |
36 * 2-phased constructor |
33 * 2-phased constructor |
37 * |
34 * |
38 * @since S60 v5.0 |
|
39 * @param TInt |
35 * @param TInt |
40 * @return none |
36 * @return none |
41 */ |
37 */ |
42 static CVoIPDataBufferImpl* NewL(TInt aBufferLen); |
38 static CVoIPDataBufferImpl* NewL(TInt aBufferLen); |
43 |
39 |
44 /** |
40 /** |
45 * Destructor |
41 * Destructor |
46 * |
42 * |
47 * @since S60 v5.0 |
|
48 * @param none |
43 * @param none |
49 * @return none |
44 * @return none |
50 */ |
45 */ |
51 virtual ~CVoIPDataBufferImpl(); |
46 virtual ~CVoIPDataBufferImpl(); |
52 |
47 |
53 /** |
48 /** |
54 * GetPayloadPtr |
49 * GetPayloadPtr |
55 * |
50 * |
56 * @since S60 v5.0 |
|
57 * @param TPtr8& |
51 * @param TPtr8& |
58 * @return none |
52 * @return none |
59 */ |
53 */ |
60 void GetPayloadPtr(TPtr8& aPayloadPtr); |
54 void GetPayloadPtr(TPtr8& aPayloadPtr); |
61 |
55 |
62 /** |
56 /** |
63 * SetPayloadPtr |
57 * SetPayloadPtr |
64 * |
58 * |
65 * @since S60 v5.0 |
|
66 * @param TPtr8 |
59 * @param TPtr8 |
67 * @return none |
60 * @return none |
68 */ |
61 */ |
69 void SetPayloadPtr(TPtr8 aPayloadPtr); |
62 void SetPayloadPtr(TPtr8 aPayloadPtr); |
70 |
63 |
71 /** |
64 /** |
72 * GetPayloadPtr |
65 * GetPayloadPtr |
73 * |
66 * |
74 * @since S60 v5.0 |
|
75 * @param CVoIPDataBuffer::TVoIPBufferType& |
67 * @param CVoIPDataBuffer::TVoIPBufferType& |
76 * @return none |
68 * @return none |
77 */ |
69 */ |
78 void GetBufferType(CVoIPDataBuffer::TVoIPBufferType& aType); |
70 void GetBufferType(CVoIPDataBuffer::TVoIPBufferType& aType); |
79 |
71 |
80 protected: |
72 protected: |
81 /** |
73 /** |
82 * Constructor |
74 * Constructor |
83 * |
75 * |
84 * @since S60 v5.0 |
|
85 * @param none |
76 * @param none |
86 * @return none |
77 * @return none |
87 */ |
78 */ |
88 CVoIPDataBufferImpl(); |
79 CVoIPDataBufferImpl(); |
89 |
80 |
90 /** |
81 /** |
91 * Symbian constructor |
82 * Symbian constructor |
92 * |
83 * |
93 * @since S60 v5.0 |
|
94 * @param TInt |
84 * @param TInt |
95 * @return void |
85 * @return void |
96 */ |
86 */ |
97 void ConstructL(TInt aBufferLen); |
87 void ConstructL(TInt aBufferLen); |
98 |
88 |
99 protected: |
89 protected: |
100 CVoIPDataBuffer::TVoIPBufferType iType; |
90 CVoIPDataBuffer::TVoIPBufferType iType; |
101 TPtr8 iPayloadPtr; |
91 TPtr8 iPayloadPtr; |
102 HBufC8* iBuf; |
92 HBufC8* iBuf; |
103 TInt iBufferLen; |
93 TInt iBufferLen; |
104 }; |
94 }; |
105 |
95 |
106 #endif //__VOIPDATABUFFERIMPL_H |
96 #endif //VOIPDATABUFFERIMPL_H |
107 |
|
108 |
97 |
109 //End of file |
98 //End of file |