Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: msvstore.h
Link against: msgs.lib

Class RMsvWriteStream

RMsvWriteStream

Support

Supported from 5.0

Description

Accesses the streams in a message store with write access, or creates 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 RWriteStream.

Derivation

RMsvWriteStreamAccesses the streams in a message store with write access, or creates new streams
RWriteStreamThe write stream interface

Defined in RMsvWriteStream:
AssignL(), AssignLC()

Inherited from RWriteStream:
Attach(), Close(), CommitL(), Detach(), Pop(), PushL(), Release(), Sink(), WriteInt16L(), WriteInt32L(), WriteInt8L(), WriteL(), WriteReal32L(), WriteReal64L(), WriteUint16L(), WriteUint32L(), WriteUint8L()


Prepare stream for writing


AssignL()

void AssignL(CMsvStore& aMsvStore, TUid aUid);

Description

Prepares a stream 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.

Parameters

CMsvStore& aMsvStore

The CMsvStore the stream is in

TUid aUid

The Uid of the stream to open with write access

Leave codes

KErrAccessDenied

Store is not open for writing

Other

Standard stream leave codes


AssignLC()

void AssignLC(CMsvStore& aMsvStore,TUid aUid);

Description

Prepares a stream for writing and places it on the cleanup stack.

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.

Parameters

CMsvStore& aMsvStore

The CMsvStore the stream is in

TUid aUid

The Uid of the stream to open with write access

Leave codes

KErrAccessDenied

Store is not open for writing

Other

Standard stream leave codes