MessageList::Core::Theme::Column::SharedRuntimeData

Search for usage in LXR

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 512 of file theme.h.

Constructor & Destructor Documentation

◆ SharedRuntimeData()

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

Create a shared runtime data object.

Definition at line 537 of file theme.cpp.

◆ ~SharedRuntimeData()

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

Destroy a shared runtime data object.

Member Function Documentation

◆ addReference()

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

Increments the reference count for this shared runtime data object.

Definition at line 546 of file theme.cpp.

◆ currentlyVisible()

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

Returns the current visibility state.

Definition at line 563 of file theme.cpp.

◆ currentWidth()

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

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

Definition at line 573 of file theme.cpp.

◆ deleteReference()

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 551 of file theme.cpp.

◆ load()

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 589 of file theme.cpp.

◆ referenceCount()

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 558 of file theme.cpp.

◆ save()

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

Saves this runtime data to the specified stream.

Definition at line 583 of file theme.cpp.

◆ setCurrentlyVisible()

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

Sets the current visibility state.

Definition at line 568 of file theme.cpp.

◆ setCurrentWidth()

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

Sets the current width of the column.

Definition at line 578 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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.