You Are Here:

Community: Blogs

Li Yongfei's Forum Nokia Blog

TIP: Using extended filename Launching an application

cool_li | 16 June, 2006 05:47


Today, In Nokia Forum Discussion I found a developer ask this question, this is a frequently asked questions. So I write this TIP. I wish it can help more developers. (author website: http://www.symbianer.com)

Q: How to use extended filename launch an application? 

A: If your document is clicked on, a recognizer will run to launch your app and pass it the filename. OpenFileL() will be invoked on that file by default. About recognizer, you can reffer to the s60 sdk Document Handling

Document File Creation

To further reduce application startup time, Series 60 by default disables document file creation and opening. In other words, CAknDocument::OpenFileL() returns NULL. OpenFileL() is called by the framework during application initialization, and returns the file store containing the application’s document. Series 60 applications must override CAknDocument::OpenFileL() if they need to store and restore data.

Code:
in cAknDocument
class CAknDocument : public CEikDocument
{
 public: // from CEikDocument
   IMPORT_C CFileStore* OpenFileL(TBool aDoOpen,const TDesC& aFilename,RFs& aFs);
 protected:
   IMPORT_C CAknDocument(CEikApplication& aApp);
};

When you clicked your document, the file path and file name will pass by "aFilename", so you can use "aFilename" to get the  informations of your clicked file.

you can visit my website get more tips.

website: http://www.symbianer.com

 

RSSComments

Re: TIP: Using extended filename Launching an application

DeadMachete | 04/02/2008, 06:49

Спасибо, пригодится.

You must login to post comments. Login
 

Rate This

 
 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fblogsE2eforumE2enokiaE2ecomhttpE3aE2fE2fblogsE2eforumE2enokiaE2ecomE2findeE78E2ephpE3fopE3dViewArticleE26blogIdE3d34687E26articleIdE3d483X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZBlogContentQ qdcZtypeQUqfntypeZBlogE45ntryQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZcppQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtypeQUqfntypeZBlogContentQ qfnZtypeQUqfntypeZBlogE45ntryQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxs60X qfnZuserE5ftagQSxsymbianE2dcE2bE2bX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZBlogContentQ qrdfZtypeQUqfntypeZBlogE45ntryQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ