equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
28 void WriteL(TInt aParam, const TDesC8 &aDes); |
28 void WriteL(TInt aParam, const TDesC8 &aDes); |
29 TInt Function() const; |
29 TInt Function() const; |
30 TInt Int0() const; |
30 TInt Int0() const; |
31 void ReadL(TInt aParamNumber,TPtr8 aParam); |
31 void ReadL(TInt aParamNumber,TPtr8 aParam); |
32 TInt GetDesLength(TInt aParam); |
32 TInt GetDesLength(TInt aParam); |
|
33 void SetMessage(const RMessage2& aMessage); |
33 private: |
34 private: |
34 RMessage2 iMessage; |
35 RMessage2 iMessage; |
35 TBool iMessageAvailable; |
|
36 public : |
36 public : |
37 TSusAdaptionServerRequests iRequestType; |
37 TSusAdaptionServerRequests iRequestType; |
38 //To know whether the object is created using reserved heap or not. |
|
39 TBool iUsingReservedHeap; |
|
40 }; |
38 }; |
41 |
39 |
42 class RSsmAdaptationRequestQueue |
40 class RSsmAdaptationRequestQueue |
43 { |
41 { |
44 public: |
42 public: |
46 TBool IsEmpty(); |
44 TBool IsEmpty(); |
47 void Dequeue(CAdaptationMessage *&aCurrentMessage); |
45 void Dequeue(CAdaptationMessage *&aCurrentMessage); |
48 void RemoveFromQueueAndComplete(const RMessage2 &aMessage); |
46 void RemoveFromQueueAndComplete(const RMessage2 &aMessage); |
49 TInt Queue(CAdaptationMessage *aPendingRequest); |
47 TInt Queue(CAdaptationMessage *aPendingRequest); |
50 void NotifyAndRemoveAll(); |
48 void NotifyAndRemoveAll(); |
51 void RemoveFromQueueAndComplete(const RMessage2 &aMessage, RHeap *aReservedHeap); |
49 TInt Count(); |
52 void NotifyAndRemoveAll(RHeap *aReservedHeap); |
|
53 TInt Reserve(TInt aReserverCount); |
|
54 TInt Count(); |
|
55 |
|
56 private: |
50 private: |
57 RPointerArray<CAdaptationMessage > iQueue; |
51 RPointerArray<CAdaptationMessage > iQueue; |
58 |
52 |
59 }; |
53 }; |
60 |
54 |
|
55 |
61 #endif __SSMADAPTATIONCMN_H__ |
56 #endif __SSMADAPTATIONCMN_H__ |