CSendUiFileRightsEngine Class Reference
|
class CSendUiFileRightsEngine : public CBase
|
Provides functionality for DRM file protection analyzing and content MMS compatibility resolving.
SenduiDataUtils.lib
-
Since
-
Series 60 3.0
|
Private Member Functions
|
|
|
CSendUiFileRightsEngine
(
RFs
&)
|
|
TBool
|
AnalyzeMmsValidationResultL
(CSendUiAttachment &,
TInt
&)
|
|
void
|
ConstructL
()
|
|
void
|
ResolveDrmQuery
(
TUid
,
TUint
&)
|
|
void
|
ResolveErrorNoteL
(
TUid
,
TUint
&,
TFREErrorNoteType
&,
TUint
&)
|
|
void
|
ResolveMmsUploadErrorNoteL
(
TUint
&,
TFREErrorNoteType
&,
TUint
&)
|
|
TBool
|
ShowConfirmationQueryL
(
TUint
,
TUint
,
TUint
)
|
|
void
|
ShowErrorNoteL
(
TUint
)
|
|
void
|
ShowErrorNotificationL
(
TUint
,
TFREErrorNoteType
,
TUint
)
|
|
TBool
|
ValidateFile
(const
TDesC
&,
TInt
&)
|
Constructor & Destructor Documentation
CSendUiFileRightsEngine(RFs &)
|
CSendUiFileRightsEngine
|
(
|
RFs
&
|
aFS
|
)
|
[private]
|
~CSendUiFileRightsEngine()
|
~CSendUiFileRightsEngine
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AnalyzeMmsValidationResultL(CSendUiAttachment &, TInt &)
|
TBool
|
AnalyzeMmsValidationResultL
|
(
|
CSendUiAttachment &
|
aAttachment,
|
|
|
TInt
&
|
aAttachmentsSize
|
|
|
)
|
[private]
|
AnalyzeMmsValidationResult
-
Since
-
S60 v.3.0
Parameters
|
CSendUiAttachment & aAttachment
|
Attachment to be analyzed
|
|
TInt
& aAttachmentsSize
|
|
CalculateTotalSizeOfFiles(CArrayPtrFlat< CSendUiAttachment > *, TBool)
|
IMPORT_C
TInt
|
CalculateTotalSizeOfFiles
|
(
|
CArrayPtrFlat
< CSendUiAttachment > *
|
aAttachments,
|
|
|
TBool
|
aLinksSupported
|
|
|
)
|
|
CalculateTotalSizeOfFiles
File sizes saved by ValidateFiles are used. If cached file sizes do not exist, then file sizes are solved.
Attachments If ETrue, then only attachments type of file handles are calculated total size of files. Otherwise filesize of all attachments is returned.
CleanupImplArray(TAny *)
|
void
|
CleanupImplArray
|
(
|
TAny
*
|
aAny
|
)
|
[static]
|
Cleanup ECOM Implementation info array
ClearValidationCounters()
|
IMPORT_C void
|
ClearValidationCounters
|
(
|
)
|
|
Clears all validation counter
ConfirmDrmFileRightsL(CArrayPtrFlat< CSendUiAttachment > *)
|
IMPORT_C void
|
ConfirmDrmFileRightsL
|
(
|
CArrayPtrFlat
< CSendUiAttachment > *
|
aAttachments
|
)
|
|
Confirms DRM rights of files
Note: files must be validated before DRM analyze. This functions also stores mimetypes of files for later use. Mimetypes are stored into the given array.
Parameters
|
CArrayPtrFlat
< CSendUiAttachment > * aAttachments
|
Attachments (Path and handle) to be validated. Return value contains valid attachments, invalid attachments are filtered away from array.
|
ConfirmMmsValidityL(CArrayPtrFlat< CSendUiAttachment > *, TUid)
|
IMPORT_C void
|
ConfirmMmsValidityL
|
(
|
CArrayPtrFlat
< CSendUiAttachment > *
|
aAttachments,
|
|
|
TUid
|
aServiceId = KNullUid
|
|
|
)
|
|
Validates files for sending via MMS
Note: files must be validated before MMS validation.
Parameters
|
CArrayPtrFlat
< CSendUiAttachment > * aAttachments
|
Attachments to be validated. Return value contains valid attachments, invalid attachments are filtered away from array.
|
|
TUid
aServiceId = KNullUid
|
Identifies the type of MMS service (MMS/MMS upload..)
|
ConstructL()
|
void
|
ConstructL
|
(
|
)
|
[private]
|
By default Symbian 2nd phase constructor is private.
ResolveDrmQuery(TUid, TUint &)
|
void
|
ResolveDrmQuery
|
(
|
TUid
|
aServiceId,
|
|
|
TUint
&
|
aResourceId
|
|
|
)
|
[private]
|
Resolves a proper DRM query for the given service
-
Since
-
S60 v.3.0
Parameters
|
TUid
aServiceId
|
Service Uid
|
|
TUint
& aResourceId
|
Id for a proper query in resources.
|
ResolveErrorNoteL(TUid, TUint &, TFREErrorNoteType &, TUint &)
Resolves a proper error note for the given service
-
Since
-
S60 v.3.0
Parameters
|
TUid
aServiceId
|
Service Uid
|
|
TUint
& aResourceId
|
Id for a proper note in resources.
|
|
TFREErrorNoteType
& aNoteType
|
Type of the note (query/info)
|
|
TUint
& aValueForNote
|
Value for the variable in the note
|
ResolveMmsUploadErrorNoteL(TUint &, TFREErrorNoteType &, TUint &)
Resolves a proper error note for the MMS Upload services
-
Since
-
S60 v.3.0
Parameters
|
TUint
& aResourceId
|
Id for a proper note in resources.
|
|
TFREErrorNoteType
& aNoteType
|
Type of the note (query/info)
|
|
TUint
& aValueForNote
|
Value for the variable in the note
|
ShowConfirmationQueryL(TUint, TUint, TUint)
|
TBool
|
ShowConfirmationQueryL
|
(
|
TUint
|
aTextResourceId,
|
|
|
TUint
|
aNoteResourceId,
|
|
|
TUint
|
aValueForNote = NULL
|
|
|
)
|
const [private]
|
Shows a confirmation query
-
Since
-
S60 v.3.0
Parameters
|
TUint
aTextResourceId
|
Text id for the note
|
|
TUint
aNoteResourceId
|
Resource id for the note
|
|
TUint
aValueForNote = NULL
|
Variable value for the note
|
ShowDrmAndMmsInfoL(TUid)
|
IMPORT_C
TBool
|
ShowDrmAndMmsInfoL
|
(
|
TUid
|
aServiceId = KNullUid
|
)
|
|
Shows DRM confirmation query and/or error note, if needed. Returns EFalse if user cancels sending.
-
Since
-
S60 v.3.0
Parameters
|
TUid
aServiceId = KNullUid
|
Different services get different notes.
|
ShowErrorNoteL(TUint)
|
void
|
ShowErrorNoteL
|
(
|
TUint
|
aTextResourceId
|
)
|
const [private]
|
Shows an error note
-
Since
-
S60 v.3.0
Parameters
|
TUint
aTextResourceId
|
Resource id of the note
|
ShowErrorNotificationL(TUint, TFREErrorNoteType, TUint)
Resolves a proper note
-
Since
-
S60 v.3.0
Parameters
|
TUint
aResourceId
|
Id for a proper note in resources.
|
|
TFREErrorNoteType
aNoteType
|
Type of the note
|
|
TUint
aValueForNote
|
Value for the variable in the note
|
ShowInformationNoteL(TUint)
|
IMPORT_C void
|
ShowInformationNoteL
|
(
|
TUint
|
aTextResourceId
|
)
|
const
|
Shows an information note
-
Since
-
S60 v.3.0
Parameters
|
TUint
aTextResourceId
|
Resource id of the note
|
ValidateFile(const TDesC &, TInt &)
|
TBool
|
ValidateFile
|
(
|
const
TDesC
&
|
aFileName,
|
|
|
TInt
&
|
aFileSize
|
|
|
)
|
[private]
|
Validates that the given file usable
Parameters
|
const
TDesC
& aFileName
|
file path
|
|
TInt
& aFileSize
|
file size
|
ValidateFiles(CArrayPtrFlat< CSendUiAttachment > *)
|
IMPORT_C void
|
ValidateFiles
|
(
|
CArrayPtrFlat
< CSendUiAttachment > *
|
aAttachments
|
)
|
|
ValidateFiles
This functions stores file sizes for all validated files.
Parameters
|
CArrayPtrFlat
< CSendUiAttachment > * aAttachments
|
Attachents to be validated. Return value contains valid attachments, invalid attachments are filtered away from array.
|
Member Enumerations Documentation
Enum TFREInvalidTypes
Enumerators
|
ESenduiIndexDrmFLOrCCL = 0
|
|
|
ESenduiIndexAlreadyInUse
|
|
|
ESenduiIndexMmsTooBig
|
|
|
ESenduiIndexMmsNotSupported
|
|
|
ESenduiIndexBadHandle
|
|
|
ESenduiIndexLastInvalid
|
|
Enum TFREValidationResults
Enumerators
|
ESenduiIndexTotalCount = 0
|
|
|
ESenduiIndexDeleted
|
|
|
ESenduiIndexDrmSD
|
|
|
ESenduiIndexLastResult
|
|
Member Data Documentation
RFs
iFileSession
|
RFs
|
iFileSession
|
[private]
|
TUint
iInvalidationReason
|
TUint
|
iInvalidationReason
|
[private]
|
CMsgMediaResolver * iMediaResolver
CMmsConformance * iMmsConformance
CFileProtectionResolver * iProtectionResolver
|
CFileProtectionResolver *
|
iProtectionResolver
|
[private]
|
TUint
iValidationResults
|
TUint
|
iValidationResults
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.