• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messagelist

  • MessageList
  • Core
  • Theme
  • Column
  • SharedRuntimeData
Public Member Functions | List of all members
MessageList::Core::Theme::Column::SharedRuntimeData Class Reference

#include <theme.h>

Public Member Functions

 SharedRuntimeData (bool currentlyVisible, int currentWidth)
 
 ~SharedRuntimeData ()
 
void addReference ()
 
bool currentlyVisible () const
 
int currentWidth () const
 
bool deleteReference ()
 
bool load (QDataStream &stream, int themeVersion)
 
int referenceCount () const
 
void save (QDataStream &stream) const
 
void setCurrentlyVisible (bool visible)
 
void setCurrentWidth (int 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 571 of file theme.h.

Constructor & Destructor Documentation

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

Create a shared runtime data object.

Definition at line 417 of file theme.cpp.

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

Destroy a shared runtime data object.

Definition at line 422 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 426 of file theme.cpp.

bool MessageList::Core::Theme::Column::SharedRuntimeData::currentlyVisible ( ) const
inline

Returns the current visibility state.

Definition at line 610 of file theme.h.

int MessageList::Core::Theme::Column::SharedRuntimeData::currentWidth ( ) const
inline

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

Definition at line 622 of file theme.h.

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

int MessageList::Core::Theme::Column::SharedRuntimeData::referenceCount ( ) const
inline

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

Definition at line 604 of file theme.h.

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

Saves this runtime data to the specified stream.

Definition at line 438 of file theme.cpp.

void MessageList::Core::Theme::Column::SharedRuntimeData::setCurrentlyVisible ( bool  visible)
inline

Sets the current visibility state.

Definition at line 616 of file theme.h.

void MessageList::Core::Theme::Column::SharedRuntimeData::setCurrentWidth ( int  currentWidth)
inline

Sets the current width of the column.

Definition at line 628 of file theme.h.


The documentation for this class was generated from the following files:
  • theme.h
  • theme.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messagelist

Skip menu "messagelist"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal