SkyMapViewManager

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.

Author
Akarsh Simha
Version
1.0

Definition at line 39 of file skymapview.h.

Member Function Documentation

◆ addView()

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

Add a view.

Definition at line 49 of file skymapview.h.

◆ drop()

void SkyMapViewManager::drop ( )
static

Drop the list.

Definition at line 177 of file skymapview.cpp.

◆ getViews()

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

Get the list of available views.

Definition at line 66 of file skymapview.h.

◆ readViews()

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

Read the list of views from the database.

Definition at line 148 of file skymapview.cpp.

◆ removeView()

bool SkyMapViewManager::removeView ( const QString & name)
static

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

Definition at line 194 of file skymapview.cpp.

◆ save()

bool SkyMapViewManager::save ( )
static

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)
static

Get the view with the given name.

Note
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 Mon Nov 18 2024 12:16:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.