03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 13.1<br />

There are some similarities between these two types of file-based application – for instance,<br />

in either case, you can open the file by select-and-open from the shell in UIS that support<br />

this functionality.<br />

However, there are real differences also. In load/save-type applications, we tend to think that<br />

the 'real' document is in RAM: the file is just a saved version of the real document. In<br />

database-type applications, we tend to think that the 'real' document is the database – each<br />

entry is just a RAM copy of something in the database. The disciplines for managing the<br />

documents as a whole are, therefore, quite different.<br />

In general, it is meaningful to make load/save-type documents embed- dable, but for<br />

databases, it is less useful. So, databases cannot be embedded (though they can certainly<br />

embed other documents in them).<br />

Finally, there are a few other ways an application handles files:<br />

� An application such as a calculator is clearly not file-based. It neither loads nor saves<br />

the state of its calculation.<br />

� Similarly, there is no need for many test applications to be file-based.<br />

� An application such as e-mail clearly deals with files: it has several directories and files<br />

containing inbox, outbox, other folders, and all the messages. On the other hand, no<br />

sensible e-mail program – including those on the PC – would expose these directories<br />

and files to the user; it would be damaging for the user to try to manipulate them from<br />

the shell (or Windows Explorer).<br />

In all three cases, you can't open an application by opening a file belonging to that<br />

application from a shell application.<br />

So the idea of file-based application has a particular meaning in Symbian OS. Load/save<br />

applications such as Word and so on are file- based and potentially embeddable. Database<br />

applications such as Agenda are also file-based, but can't be embedded. Applications such<br />

as Calc and e-mail aren't file-based.<br />

Important<br />

A key implication of this is that Symbian OS native documents are not<br />

recognized on the basis of their file extension because you don't get file<br />

names in embedded documents.<br />

So a file that's displayed on the Symbian OS shell view (like on the Psion Revo) as Agenda<br />

has no hidden file extension and file save dialogs don't add a default extension for you as<br />

happens on Windows. If an Agenda icon appears next to the file, that's because its internal<br />

format indicates it's an Agenda file.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!