MessageList::Core::Theme::Column::SharedRuntimeData Class Reference

#include <theme.h>

Public Member Functions

 SharedRuntimeData (bool currentlyVisible, double currentWidth)
 ~SharedRuntimeData ()
void addReference ()
bool currentlyVisible () const
double currentWidth () const
bool deleteReference ()
bool load (QDataStream &stream, int themeVersion)
int referenceCount () const
void save (QDataStream &stream) const
void setCurrentlyVisible (bool visible)
void setCurrentWidth (double currentWidth)

Detailed Description

A set of shared runtime data.

This is used to store a set of "override" settings at runtime. For instance, the width of the visible columns of a skin are stored here.

Definition at line 511 of file theme.h.

Constructor & Destructor Documentation

Theme::Column::SharedRuntimeData::SharedRuntimeData ( bool  currentlyVisible,
double  currentWidth 

Create a shared runtime data object.

Definition at line 546 of file theme.cpp.

Theme::Column::SharedRuntimeData::~SharedRuntimeData ( )

Destroy a shared runtime data object.

Definition at line 553 of file theme.cpp.

Member Function Documentation

void Theme::Column::SharedRuntimeData::addReference ( )

Increments the reference count for this shared runtime data object.

Definition at line 557 of file theme.cpp.

bool Theme::Column::SharedRuntimeData::currentlyVisible ( ) const

Returns the current visibility state.

Definition at line 574 of file theme.cpp.

double Theme::Column::SharedRuntimeData::currentWidth ( ) const

Returns the current width or -1 if the width is unspecified/invalid.

Definition at line 584 of file theme.cpp.

bool Theme::Column::SharedRuntimeData::deleteReference ( )

Decrements the reference count for this shared runtime data object.

Returns true if there are other references and false otherwise (so the data can be safely deleted)

Definition at line 562 of file theme.cpp.

bool Theme::Column::SharedRuntimeData::load ( QDataStream stream,
int  themeVersion 

Loads the shared runtime data from the specified stream assuming that it uses the specified theme version.

Returns true on success and false if the data can't be loaded.

Definition at line 600 of file theme.cpp.

int Theme::Column::SharedRuntimeData::referenceCount ( ) const

Returns the current number of reference counts, that is, the number of Theme::Column objects that use this SharedRuntimeData instance.

Definition at line 569 of file theme.cpp.

void Theme::Column::SharedRuntimeData::save ( QDataStream stream) const

Saves this runtime data to the specified stream.

Definition at line 594 of file theme.cpp.

void Theme::Column::SharedRuntimeData::setCurrentlyVisible ( bool  visible)

Sets the current visibility state.

Definition at line 579 of file theme.cpp.

void Theme::Column::SharedRuntimeData::setCurrentWidth ( double  currentWidth)

Sets the current width of the column.

Definition at line 589 of file theme.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 23:12:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.