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 507 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 519 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 528 of file theme.cpp.

◆ currentlyVisible()

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

Returns the current visibility state.

Definition at line 545 of file theme.cpp.

◆ currentWidth()

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

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

Definition at line 555 of file theme.cpp.

◆ deleteReference()

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

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

◆ referenceCount()

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

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

Definition at line 540 of file theme.cpp.

◆ save()

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

Saves this runtime data to the specified stream.

Definition at line 565 of file theme.cpp.

◆ setCurrentlyVisible()

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

Sets the current visibility state.

Definition at line 550 of file theme.cpp.

◆ setCurrentWidth()

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

Sets the current width of the column.

Definition at line 560 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 Fri Jul 12 2024 11:49:56 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.