EPOC   SDK Home Glossary Indexes Previous Next Up

RMsvWriteStream class


Contents


RMsvWriteStream class — Stream write —

Section Contents


Overview

Compatibility

Applications that use this class will not work correctly on a version of EPOC earlier than ER5.

Derivation

RWriteStream

Abstract: supports write and externalize operations

RDictionaryWriteStream

Supports creation and manipulation of a stream in a dictionary store.

Defined in

msvstore.h

Link against

ment.lib

Description

This class is used to access the streams in a message store with write access, or to create new streams. Before it is used, a CMsvStore must have been opened on the message store with write access.

This class is intended for use by MTM implementations to store MTM-specific information. Message client applications access the store through the higher-level functions provided by Client-side and User Interface MTMs.

Most of its functionality is provided by the base class RDictionaryWriteStream and RWriteStream.


Prepare stream for writing


AssignL() / AssignLC() — Prepare stream for writing

void AssignL(CMsvStore& aMsvStore, TUid aUid);

void AssignLC(CMsvStore& aMsvStore,TUid aUid);

Description

Use this function to to prepare a stream with UID aUid in store aMsvStore for writing. After this function has been called, the stream can be written to with the functions provided by the RWriteStream base class.

If the stream does not exist, it is created.

AssignLC() places the stream on the cleanup stack.

Arguments

CMsvStore& aMsvStore

The CMsvStore the stream is in

TUid aUid

The Uid of the stream to open with write access

Leave considerations

KErrAccessDenied

Store is not open for writing

Other

Standard stream leave codes

EPOC       SDK Home Glossary Indexes Previous Next Up