44 { |
44 { |
45 public: |
45 public: |
46 static CF32AgentData* NewL(const TVirtualPathPtr& aVirtualPath, TContentShareMode aShareMode); |
46 static CF32AgentData* NewL(const TVirtualPathPtr& aVirtualPath, TContentShareMode aShareMode); |
47 static CF32AgentData* NewL(RFile& aFile, const TDesC& aUniqueId); |
47 static CF32AgentData* NewL(RFile& aFile, const TDesC& aUniqueId); |
48 |
48 |
49 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
50 static CF32AgentData* NewL(const TDesC8& aHeaderData); |
|
51 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
52 |
|
53 ~CF32AgentData(); |
49 ~CF32AgentData(); |
54 |
50 |
55 public: // From CAgentData |
51 public: // From CAgentData |
56 virtual TInt Read(TDes8& aDes); |
52 virtual TInt Read(TDes8& aDes); |
57 virtual TInt Read(TDes8& aDes,TInt aLength); |
53 virtual TInt Read(TDes8& aDes,TInt aLength); |
76 virtual TInt Read(TInt aPos, TDes8& aDes, TInt aLength, TRequestStatus& aStatus); |
72 virtual TInt Read(TInt aPos, TDes8& aDes, TInt aLength, TRequestStatus& aStatus); |
77 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
73 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
78 virtual TInt Read64(TInt64 aPos, TDes8& aDes, TInt aLength, TRequestStatus& aStatus); |
74 virtual TInt Read64(TInt64 aPos, TDes8& aDes, TInt aLength, TRequestStatus& aStatus); |
79 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
75 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
80 |
76 |
81 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
82 virtual TInt Read(const TDesC8& aEncryptedInputDataPacket, TDes8& aDecryptedOutputDataPacket); |
|
83 virtual void Read(const TDesC8& aEncryptedInputDataPacket, TDes8& aDecryptedOutputDataPacket, TRequestStatus& aStatus); |
|
84 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
85 |
|
86 private: |
77 private: |
87 CF32AgentData(); |
78 CF32AgentData(); |
88 void ConstructL(const TVirtualPathPtr& aVirtualPath, TContentShareMode aShareMode); |
79 void ConstructL(const TVirtualPathPtr& aVirtualPath, TContentShareMode aShareMode); |
89 void ConstructL(RFile& aFile, const TDesC& aUniqueId); |
80 void ConstructL(RFile& aFile, const TDesC& aUniqueId); |
90 |
|
91 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
92 void ConstructL(const TDesC8& aHeaderData); |
|
93 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
94 |
81 |
95 CF32AgentUi& AgentUiL(); |
82 CF32AgentUi& AgentUiL(); |
96 |
83 |
97 private: |
84 private: |
98 /** Handle to the filesystem */ |
85 /** Handle to the filesystem */ |
106 #endif //SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
93 #endif //SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
107 |
94 |
108 CVirtualPath* iVirtualPath; |
95 CVirtualPath* iVirtualPath; |
109 CF32AgentUi* iAgentUi; |
96 CF32AgentUi* iAgentUi; |
110 |
97 |
111 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
112 HBufC8* iHeaderData; |
|
113 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
114 }; |
98 }; |
115 } // namespace ContentAccess |
99 } // namespace ContentAccess |
116 #endif // __F32AGENTDATA_H__ |
100 #endif // __F32AGENTDATA_H__ |