Namespaces
Variants
Actions
Revision as of 09:15, 26 July 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RDictionaryWriteStream

Jump to: navigation, search
Article Metadata

Article
Created: eswar_illuri (21 May 2007)
Last edited: hamishwillee (26 Jul 2012)

Supports the creation or replacement of a stream a dictionary store.

To prepare a stream for writing, use the RDictionaryWriteStream::AssignL() or RDictionaryWriteStream::AssignLC() functions, passing a reference to the dictionary store and the UID associated with the stream.

If no stream is associated with the UID, then a new stream is created. An association is made between the resulting stream ID and the UID.

If a stream is currently associated with the specified UID, then the existing stream is prepared for replacement.

TUid theuid;
CDictionaryStore* store;
...
RDictionaryWriteStream outstream;
outstream.AssignLC(*store,theuid);
TSomeData data;
...
outstream << data;
outstream.CommitL()
CleanupStack::PopAndDestroy(); // cleanup the write stream
...
store->CommitL(); // commit changes to the dictionary store
58 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