Search for usage in LXR

SkyMapViewManager Class Reference

#include <skymapview.h>

Static Public Member Functions

static void addView (const SkyMapView &newView)
static void drop ()
static const QList< SkyMapView > & getViews ()
static const QList< SkyMapView > & readViews ()
static bool removeView (const QString &name)
static bool save ()
static std::optional< SkyMapViewviewNamed (const QString &name)

Detailed Description

Manages a list of sky map views.

Akarsh Simha

Definition at line 39 of file skymapview.h.

Member Function Documentation

◆ addView()

static void SkyMapViewManager::addView ( const SkyMapView & newView)

Add a view.

Definition at line 49 of file skymapview.h.

◆ drop()

void SkyMapViewManager::drop ( )

Drop the list.

Definition at line 177 of file skymapview.cpp.

◆ getViews()

static const QList< SkyMapView > & SkyMapViewManager::getViews ( )

Get the list of available views.

Definition at line 66 of file skymapview.h.

◆ readViews()

const QList< SkyMapView > & SkyMapViewManager::readViews ( )

Read the list of views from the database.

Definition at line 148 of file skymapview.cpp.

◆ removeView()

bool SkyMapViewManager::removeView ( const QString & name)

Remove a view Note: This is currently an O(N) operation.

Definition at line 194 of file skymapview.cpp.

◆ save()

bool SkyMapViewManager::save ( )

Commit the list of views to the database.

Definition at line 112 of file skymapview.cpp.

◆ viewNamed()

std::optional< SkyMapView > SkyMapViewManager::viewNamed ( const QString & name)

Get the view with the given name.

This is currently an O(N) operation

Definition at line 182 of file skymapview.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 May 24 2024 11:49:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.