Namespaces
Variants
Actions
Revision as of 08:53, 21 June 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:Copying or moving unrecognized files with document handler (Known Issue)

Jump to: navigation, search
Archived.png
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata

Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1

Article
Created: User:Technical writer 1 (20 Aug 2007)
Last edited: hamishwillee (21 Jun 2012)

Overview

Document handler (CDocumentHandler) provides easy methods for copying or moving content to predefined directories, based on the content MIME type. If the file is not recognized as an image, sound, or video clip, a temporary directory is used as the destination, and (moved) content may eventually get deleted from the file system.

Description

If one of the following functions from CDocumentHandler: CopyL(), MoveL(), or SilentMoveL() is used, and the copied file's MIME type is not one of the following, then the default destination is a temporary folder.

  • image/vnd.nokia.ota-bitmap
  • image/x-ota-bitmap
  • application/vnd.nokia.ringing-tone
  • audio/*
  • image/*
  • video/*
  • application/vnd.rn-realmedia
  • application/sdp

After the CDocumentHandler instance is deleted, the copied/moved files will also be deleted from the temporary folder. This may result in the unintended deletion of files especially when trying to move content.

Solution

Using the copy/move methods from CDocumentHandler is not recommended for content types other than those listed above.

PathInfo class has a method called OthersPath() that returns the paths that could be used for generic content.

465 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved