equal
deleted
inserted
replaced
46 CleanupStack::PushL(self); |
46 CleanupStack::PushL(self); |
47 self->ConstructL(aAgentUid, aURI, aShareMode); |
47 self->ConstructL(aAgentUid, aURI, aShareMode); |
48 return self; |
48 return self; |
49 } |
49 } |
50 |
50 |
|
51 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
52 CAttribute* CAttribute::NewLC(TUid aAgentUid, const TDesC8& aHeaderData) |
|
53 { |
|
54 CAttribute* self = new(ELeave) CAttribute(); |
|
55 CleanupStack::PushL(self); |
|
56 self->ConstructL(aAgentUid, aHeaderData); |
|
57 return self; |
|
58 } |
|
59 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
60 |
51 CAttribute::CAttribute() |
61 CAttribute::CAttribute() |
52 { |
62 { |
53 } |
63 } |
54 |
64 |
55 CAttribute::~CAttribute() |
65 CAttribute::~CAttribute() |
81 iAgentContent = iAgentFactory->CreateContentBrowserL(aFile); |
91 iAgentContent = iAgentFactory->CreateContentBrowserL(aFile); |
82 |
92 |
83 iQuerySet = CBitset::NewL(static_cast<TInt>(KAttrTop)); |
93 iQuerySet = CBitset::NewL(static_cast<TInt>(KAttrTop)); |
84 iResponseSet = CBitset::NewL(static_cast<TInt>(KAttrTop)); |
94 iResponseSet = CBitset::NewL(static_cast<TInt>(KAttrTop)); |
85 } |
95 } |
|
96 |
|
97 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
98 void CAttribute::ConstructL(TUid aAgentUid, const TDesC8& aHeaderData) |
|
99 { |
|
100 // create a agent factory implementation (pseudo ECOM handle) |
|
101 iAgentFactory = CAgentFactory::NewL(aAgentUid); |
|
102 iAgentContent = iAgentFactory->CreateContentBrowserL(aHeaderData); |
|
103 |
|
104 iQuerySet = CBitset::NewL(static_cast<TInt>(KAttrTop)); |
|
105 iResponseSet = CBitset::NewL(static_cast<TInt>(KAttrTop)); |
|
106 } |
|
107 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
86 |
108 |
87 EXPORT_C void CAttribute::Reset() |
109 EXPORT_C void CAttribute::Reset() |
88 { |
110 { |
89 iQuerySet->Reset(); |
111 iQuerySet->Reset(); |
90 iResponseSet->Reset(); |
112 iResponseSet->Reset(); |