|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <caf/attribute.h> |
|
17 #include "testimageiagentcontent.h" |
|
18 #include <caf/bitset.h> |
|
19 |
|
20 using namespace ContentAccess; |
|
21 |
|
22 CTestIMAGEIAgentContent* CTestIMAGEIAgentContent::NewL(const TDesC& aURI, TContentShareMode aMode) |
|
23 { |
|
24 CTestIMAGEIAgentContent* self = NewLC(aURI, aMode); |
|
25 CleanupStack::Pop(self); |
|
26 return self; |
|
27 } |
|
28 |
|
29 CTestIMAGEIAgentContent* CTestIMAGEIAgentContent::NewLC(const TDesC& aURI, TContentShareMode aMode) |
|
30 { |
|
31 CTestIMAGEIAgentContent* self=new(ELeave) CTestIMAGEIAgentContent(); |
|
32 CleanupStack::PushL(self); |
|
33 self->ConstructL(aURI, aMode); |
|
34 return self; |
|
35 } |
|
36 |
|
37 CTestIMAGEIAgentContent::CTestIMAGEIAgentContent() |
|
38 { |
|
39 } |
|
40 |
|
41 CTestIMAGEIAgentContent::~CTestIMAGEIAgentContent() |
|
42 { |
|
43 } |
|
44 |
|
45 void CTestIMAGEIAgentContent::ConstructL(const TDesC& /*aURI*/, TContentShareMode /*aMode*/) |
|
46 { |
|
47 } |
|
48 |
|
49 TInt CTestIMAGEIAgentContent::OpenContainer(const TDesC& /*aUniqueId*/) |
|
50 { |
|
51 return KErrNone; |
|
52 } |
|
53 |
|
54 TInt CTestIMAGEIAgentContent::CloseContainer() |
|
55 { |
|
56 return KErrNone; |
|
57 } |
|
58 |
|
59 void CTestIMAGEIAgentContent::GetEmbeddedObjectsL(RStreamablePtrArray<CEmbeddedObject>& /*aArray*/) |
|
60 { |
|
61 } |
|
62 |
|
63 void CTestIMAGEIAgentContent::GetEmbeddedObjectsL(RStreamablePtrArray<CEmbeddedObject>& /*aArray*/, TEmbeddedType /*aType*/) |
|
64 { |
|
65 } |
|
66 |
|
67 TInt CTestIMAGEIAgentContent::Search(RStreamablePtrArray<CEmbeddedObject>& /*aArray*/, const TDesC8& /*aMimeType*/, TBool /*aRecursive*/) |
|
68 { |
|
69 return KErrNone; |
|
70 } |
|
71 |
|
72 TInt CTestIMAGEIAgentContent::GetAttribute(TInt /*aAttribute*/, TInt& /*aValue*/, const TDesC& /*aUniqueId*/) |
|
73 { |
|
74 return KErrNone; |
|
75 } |
|
76 |
|
77 TInt CTestIMAGEIAgentContent::GetAttributeSet(RAttributeSet& aAttributeSet, const TDesC& /*aUniqueId*/) |
|
78 { |
|
79 TInt err = KErrNone; |
|
80 aAttributeSet.SetValue(EIsProtected, 1, err); |
|
81 aAttributeSet.SetValue(EIsForwardable, 0, err); |
|
82 aAttributeSet.SetValue(EIsModifyable, 0, err); |
|
83 aAttributeSet.SetValue(EIsCopyable, 1, err); |
|
84 return err; |
|
85 } |
|
86 |
|
87 TInt CTestIMAGEIAgentContent::GetStringAttribute(TInt /*aAttribute*/, TDes& /*aValue*/, const TDesC& /*aUniqueId*/) |
|
88 { |
|
89 return KErrNone; |
|
90 } |
|
91 |
|
92 TInt CTestIMAGEIAgentContent::GetStringAttributeSet(RStringAttributeSet& /*aStringAttributeSet*/, const TDesC& /*aUniqueId*/) |
|
93 { |
|
94 return KErrNone; |
|
95 } |
|
96 |
|
97 TInt CTestIMAGEIAgentContent::AgentSpecificCommand(TInt /*aCommand*/, const TDesC8& /*aInputBuffer*/, TDes8& /*aOutputBuffer*/) |
|
98 { |
|
99 return KErrNone; |
|
100 } |
|
101 |
|
102 void CTestIMAGEIAgentContent::AgentSpecificCommand(TInt /*aCommand*/, const TDesC8& /*aInputBuffer*/, TDes8& /*aOutputBuffer*/, TRequestStatus& /*aStatus*/) |
|
103 { |
|
104 } |
|
105 |
|
106 void CTestIMAGEIAgentContent::NotifyStatusChange(TEventMask /*aMask*/, TRequestStatus& /*aStatus*/, const TDesC& /*aUniqueId*/) |
|
107 { |
|
108 } |
|
109 |
|
110 TInt CTestIMAGEIAgentContent::CancelNotifyStatusChange(TRequestStatus& /*aStatus*/, const TDesC& /*aUniqueId*/) |
|
111 { |
|
112 return KErrNone; |
|
113 } |
|
114 |
|
115 void CTestIMAGEIAgentContent::RequestRights(TRequestStatus& /*aStatus*/, const TDesC& /*aUniqueId*/) |
|
116 { |
|
117 } |
|
118 |
|
119 TInt CTestIMAGEIAgentContent::CancelRequestRights(TRequestStatus& /*aStatus*/, const TDesC& /*aUniqueId*/) |
|
120 { |
|
121 return KErrNone; |
|
122 } |
|
123 |
|
124 void CTestIMAGEIAgentContent::DisplayInfoL(TDisplayInfo /*aInfo*/, const TDesC& /*aUniqueId*/) |
|
125 { |
|
126 } |
|
127 |
|
128 TInt CTestIMAGEIAgentContent::SetProperty(TAgentProperty /*aProperty*/, TInt /*aValue*/) |
|
129 { |
|
130 return KErrNone; |
|
131 } |