Kstars
ksuserdb.cpp
36 QString current_dbfile = QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath("userdb.sqlite");
53 QFileInfo dbfile(QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath("userdb.sqlite"));
118 // Starting with 2.9.7, we are using SCHEMA_VERSION which now decoupled from KStars Version and starts at 300
173 QString columnQuery = QString("ALTER TABLE profile ADD COLUMN remotedrivers TEXT DEFAULT NULL");
195 QString columnQuery = QString("ALTER TABLE customdrivers ADD COLUMN Manufacturer TEXT DEFAULT NULL");
294 // Need to offset primary key by 100,000 to differential it from scopes and keep it backward compatible.
312 // Add focusTemperature, focusAltitude, focusTicksPerTemp, focusTicksPerAlt and wavelength to filter table
333 ////////////////////////////////////////////////////////////////////////////////////////////////////////
335 ////////////////////////////////////////////////////////////////////////////////////////////////////////
343 ////////////////////////////////////////////////////////////////////////////////////////////////////////
345 ////////////////////////////////////////////////////////////////////////////////////////////////////////
457 tables.append("CREATE TABLE profile (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, host "
458 "TEXT, port INTEGER, city TEXT, province TEXT, country TEXT, indiwebmanagerport INTEGER DEFAULT "
459 "NULL, autoconnect INTEGER DEFAULT 1, guidertype INTEGER DEFAULT 0, guiderhost TEXT, guiderport INTEGER,"
464 tables.append("INSERT INTO profile (name, host, port) VALUES ('Simulators', 'localhost', 7624)");
469 tables.append("CREATE TABLE driver (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, label TEXT NOT NULL, role "
471 //tables.append("CREATE TABLE custom_driver (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, drivers TEXT NOT NULL, profile INTEGER NOT NULL, FOREIGN KEY(profile) REFERENCES profile(id))");
473 tables.append("INSERT INTO driver (label, role, profile) VALUES ('Telescope Simulator', 'Mount', 1)");
475 tables.append("INSERT INTO driver (label, role, profile) VALUES ('Focuser Simulator', 'Focuser', 1)");
477 tables.append("CREATE TABLE profilesettings (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, "
482 "dustcap TEXT DEFAULT NULL, lightbox TEXT DEFAULT NULL, scope TEXT DEFAULT NULL, reducer REAL DEFAULT 1, "
483 "rotator TEXT DEFAULT NULL, focuser TEXT DEFAULT NULL, filterwheel TEXT DEFAULT NULL, camera TEXT DEFAULT NULL, "
486 tables.append("CREATE TABLE opticaltrainsettings (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, "
489 tables.append("CREATE TABLE IF NOT EXISTS darkframe (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, ccd TEXT "
490 "NOT NULL, chip INTEGER DEFAULT 0, binX INTEGER, binY INTEGER, temperature REAL, gain INTEGER DEFAULT -1, "
491 "iso TEXT DEFAULT NULL, duration REAL, filename TEXT NOT NULL, defectmap TEXT DEFAULT NULL, timestamp "
499 tables.append("INSERT INTO hips (ID, obs_title, obs_description, hips_order, hips_frame, hips_tile_width, hips_tile_format, hips_service_url, moc_sky_fraction)"
500 "VALUES ('CDS/P/DSS2/color', 'DSS Colored', 'Color composition generated by CDS. This HiPS survey is based on 2 others HiPS surveys,"
501 " respectively DSS2-red and DSS2-blue HiPS, both of them directly generated from original scanned plates downloaded"
502 " from STScI site. The red component has been built from POSS-II F, AAO-SES,SR and SERC-ER plates. The blue component"
503 " has been build from POSS-II J and SERC-J,EJ. The green component is based on the mean of other components. Three"
504 " missing plates from red survey (253, 260, 359) has been replaced by pixels from the DSSColor STScI jpeg survey."
505 " The 11 missing blue plates (mainly in galactic plane) have not been replaced (only red component).',"
508 tables.append("INSERT INTO hips (ID, obs_title, obs_description, hips_order, hips_frame, hips_tile_width, hips_tile_format, hips_service_url, moc_sky_fraction)"
509 "VALUES ('CDS/P/2MASS/color', '2MASS Color J (1.23 microns), H (1.66 microns), K (2.16 microns)',"
510 "'2MASS has uniformly scanned the entire sky in three near-infrared bands to detect and characterize point sources"
511 " brighter than about 1 mJy in each band, with signal-to-noise ratio (SNR) greater than 10, using a pixel size of"
512 " 2.0\". This has achieved an 80,000-fold improvement in sensitivity relative to earlier surveys. 2MASS used two"
513 " highly-automated 1.3-m telescopes, one at Mt. Hopkins, AZ, and one at CTIO, Chile. Each telescope was equipped with"
514 " a three-channel camera, each channel consisting of a 256x256 array of HgCdTe detectors, capable of observing the"
515 " sky simultaneously at J (1.25 microns), H (1.65 microns), and Ks (2.17 microns). The University of Massachusetts"
516 " (UMass) was responsible for the overall management of the project, and for developing the infrared cameras and"
517 " on-site computing systems at both facilities. The Infrared Processing and Analysis Center (IPAC) is responsible"
518 " for all data processing through the Production Pipeline, and construction and distribution of the data products."
522 tables.append("INSERT INTO hips (ID, obs_title, obs_description, hips_order, hips_frame, hips_tile_width, hips_tile_format, hips_service_url, moc_sky_fraction)"
523 "VALUES ('CDS/P/Fermi/color', 'Fermi Color HEALPix Survey', 'Launched on June 11, 2008, the Fermi Gamma-ray Space Telescope observes the cosmos using the"
524 " highest-energy form of light. This survey sums all data observed by the Fermi mission up to week 396. This version"
525 " of the Fermi survey are intensity maps where the summed counts maps are divided by the exposure for each pixel"
526 ". We anticipate using the HEASARC Hera capabilities to update this survey on a roughly quarterly basis. Data is"
527 " broken into 5 energy bands : 30-100 MeV Band 1, 100-300 MeV Band 2, 300-1000 MeV Band 3, 1-3 GeV Band 4 ,"
528 " 3-300 GeV Band 5. The SkyView data are based upon a Cartesian projection of the counts divided by the exposure maps."
529 " In the Cartesian projection pixels near the pole have a much smaller area than pixels on the equator, so these"
530 " pixels have smaller integrated flux. When creating large scale images in other projections users may wish to make"
531 " sure to compensate for this effect the flux conserving clip-resampling option.', '9', 'equatorial', '512', 'jpeg fits',"
566 // Need to offset primary key by 100,000 to differential it from scopes and keep it backward compatible.
586 ////////////////////////////////////////////////////////////////////////////////////////////////////////
588 ////////////////////////////////////////////////////////////////////////////////////////////////////////
625 ////////////////////////////////////////////////////////////////////////////////////////////////////////
627 ////////////////////////////////////////////////////////////////////////////////////////////////////////
648 ////////////////////////////////////////////////////////////////////////////////////////////////////////
650 ////////////////////////////////////////////////////////////////////////////////////////////////////////
675 ////////////////////////////////////////////////////////////////////////////////////////////////////////
677 ////////////////////////////////////////////////////////////////////////////////////////////////////////
712 * @param oneFrame Map that contains 1 to 1 correspondence with the database table, except for primary key and timestamp.
740 * @brief KSUserDB::UpdateDarkFrame Updates an existing dark frame record in the data, replace all values matching the supplied ID
768 * @brief KSUserDB::DeleteDarkFrame Delete from database a dark frame record that matches the filename field.
792 ////////////////////////////////////////////////////////////////////////////////////////////////////////
794 ////////////////////////////////////////////////////////////////////////////////////////////////////////
826 ////////////////////////////////////////////////////////////////////////////////////////////////////////
828 ////////////////////////////////////////////////////////////////////////////////////////////////////////
857 ////////////////////////////////////////////////////////////////////////////////////////////////////////
859 ////////////////////////////////////////////////////////////////////////////////////////////////////////
880 ////////////////////////////////////////////////////////////////////////////////////////////////////////
882 ////////////////////////////////////////////////////////////////////////////////////////////////////////
913 ////////////////////////////////////////////////////////////////////////////////////////////////////////
915 ////////////////////////////////////////////////////////////////////////////////////////////////////////
948 ////////////////////////////////////////////////////////////////////////////////////////////////////////
950 ////////////////////////////////////////////////////////////////////////////////////////////////////////
981 ////////////////////////////////////////////////////////////////////////////////////////////////////////
983 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1004 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1006 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1038 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1040 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1071 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1073 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1095 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1097 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1127 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1129 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1145 for (QMap<QString, QString>::const_iterator iter = oneSource.begin(); iter != oneSource.end(); ++iter)
1154 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1156 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1178 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1180 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1211 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1213 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1229 for (QMap<QString, QVariant>::const_iterator iter = oneInfo.begin(); iter != oneInfo.end(); ++iter)
1238 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1240 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1260 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1262 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1284 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1286 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1319 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1321 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1344 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1346 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1347 bool KSUserDB::AddFlag(const QString &ra, const QString &dec, const QString &epoch, const QString &image_name,
1374 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1376 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1418 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1420 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1442 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1444 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1470 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1472 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1473 bool KSUserDB::AddScope(const QString &model, const QString &vendor, const QString &type, const double &aperture,
1503 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1505 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1538 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1540 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1578 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1580 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1581 bool KSUserDB::AddEyepiece(const QString &vendor, const QString &model, const double &focalLength, const double &fov,
1607 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1609 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1610 bool KSUserDB::AddEyepiece(const QString &vendor, const QString &model, const double &focalLength, const double &fov,
1642 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1644 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1682 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1684 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1708 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1710 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1711 bool KSUserDB::AddLens(const QString &vendor, const QString &model, const double &factor, const QString &id)
1738 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1740 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1776 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1778 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1817 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1819 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1861 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1863 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1907 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1909 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1927 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1929 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1947 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1949 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1967 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1969 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1987 ////////////////////////////////////////////////////////////////////////////////////////////////////////
1989 ////////////////////////////////////////////////////////////////////////////////////////////////////////
2042 ////////////////////////////////////////////////////////////////////////////////////////////////////////
2044 ////////////////////////////////////////////////////////////////////////////////////////////////////////
2080 ////////////////////////////////////////////////////////////////////////////////////////////////////////
2082 ////////////////////////////////////////////////////////////////////////////////////////////////////////
2113 ////////////////////////////////////////////////////////////////////////////////////////////////////////
2115 ////////////////////////////////////////////////////////////////////////////////////////////////////////
2238 p->HorizontalToEquatorial(KStarsData::Instance()->lst(), KStarsData::Instance()->geo()->lat());
2306 QString tableQuery = QString("CREATE TABLE %1 (Az REAL NOT NULL, Alt REAL NOT NULL)").arg(tableName);
2535 rc = query.exec("DELETE FROM opticaltrainsettings WHERE opticaltrain IN (select id FROM opticaltrains WHERE profile=" +
2568 if (!query.exec(QString("UPDATE profile SET name='%1' WHERE id=%2").arg(pi->name).arg(pi->id)))
2575 QString("UPDATE profile SET host='%1',port=%2 WHERE id=%3").arg(pi->host).arg((pi->port)).arg(pi->id)))
2599 if (!query.exec(QString("UPDATE profile SET autoconnect=%1 WHERE id=%2").arg(pi->autoConnect ? 1 : 0).arg(pi->id)))
2603 if (!query.exec(QString("UPDATE profile SET portselector=%1 WHERE id=%2").arg(pi->portSelector ? 1 : 0).arg(pi->id)))
2607 if (!query.exec(QString("UPDATE profile SET guidertype=%1 WHERE id=%2").arg(pi->guidertype).arg(pi->id)))
2611 if (!query.exec(QString("UPDATE profile SET indihub=%1 WHERE id=%2").arg(pi->indihub).arg(pi->id)))
2617 if (!query.exec(QString("UPDATE profile SET guiderhost='%1' WHERE id=%2").arg(pi->guiderhost).arg(pi->id)))
2619 if (!query.exec(QString("UPDATE profile SET guiderport=%1 WHERE id=%2").arg(pi->guiderport).arg(pi->id)))
2624 if (!query.exec(QString("UPDATE profile SET remotedrivers='%1' WHERE id=%2").arg(pi->remotedrivers).arg(pi->id)))
2628 if (!query.exec(QString("UPDATE profile SET scripts='%1' WHERE id=%2").arg(QString::fromLocal8Bit(pi->scripts)).arg(
2644 /*if (pi->customDrivers.isEmpty() == false && !query.exec(QString("INSERT INTO custom_driver (drivers, profile) VALUES('%1',%2)").arg(pi->customDrivers).arg(pi->id)))
2742 qDebug() << Q_FUNC_INFO << "custom driver select error: " << custom_driver.query().lastQuery() << custom_driver.lastError().text();
2774 bool KSUserDB::AddDSLRLens(const QString &model, const QString &vendor, const double focalLength, const double focalRatio)
2801 bool KSUserDB::AddDSLRLens(const QString &model, const QString &vendor, const double focalLength, const double focalRatio,
void append(const T &value)
virtual void clear() override
std::optional< QSqlQuery > query(const QString &queryStatement)
bool UpdateOpticalTrain(const QVariantMap &oneTrain, int id)
Update an existing optical train.
Definition: ksuserdb.cpp:951
bool submitAll()
Definition: linelist.h:24
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
bool GetAllEyepieces(QList< OAL::Eyepiece * > &m_eyepieceList)
Populate the reference passed with all eyepieces.
Definition: ksuserdb.cpp:1645
QString number(int n, int base)
QStringRef value(const QString &namespaceUri, const QString &name) const const
bool remove()
Definition: filter.h:47
bool DeleteAllEquipment(const QString &type)
Erases the whole equipment table of given type.
Definition: ksuserdb.cpp:1445
Type type(const QSqlDatabase &db)
void remove(int pos)
QSqlRecord record() const const
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
Definition: skypoint.h:44
bool copy(const QString &newName)
virtual bool removeRows(int row, int count, const QModelIndex &parent) override
virtual void setFilter(const QString &filter)
QMap::iterator begin()
bool insertRecord(int row, const QSqlRecord &record)
void clear()
void append(const T &value)
virtual void setEditStrategy(QSqlTableModel::EditStrategy strategy)
bool GetAllScopes(QList< OAL::Scope * > &m_scopeList)
updates the scope list with all scopes from database List is cleared and then filled with content.
Definition: ksuserdb.cpp:1541
bool GetAllObservers(QList< OAL::Observer * > &observer_list)
Updates the passed reference of observer_list with all observers The original content of the list is ...
Definition: ksuserdb.cpp:678
bool insertRow(int row, const QModelIndex &parent)
QByteArray toByteArray() const const
bool DeleteObserver(const QString &id)
Removes the user with unique id as given by FindObserver Returns false if the user is not found.
Definition: ksuserdb.cpp:651
bool isEndElement() const const
bool DeleteDarkFrame(const QString &filename)
KSUserDB::DeleteDarkFrame Delete from database a dark frame record that matches the filename field.
Definition: ksuserdb.cpp:771
bool AddImageOverlay(const ImageOverlay &overlay)
Adds a new image overlay row into the database.
Definition: ksuserdb.cpp:2380
void append(const QSqlField &field)
QVariant value(int index) const const
bool exists() const const
bool GetOpticalTrains(uint32_t profileID, QList< QVariantMap > &opticalTrains)
Populate the reference passed with all optical trains.
Definition: ksuserdb.cpp:1007
bool GetProfileSettings(uint32_t profile, QVariantMap &settings)
Populate the reference passed with settings for one paritcular profile.
Definition: ksuserdb.cpp:3020
bool GetAllFilters(QList< OAL::Filter * > &m_filterList)
Populate the reference passed with all filters.
Definition: ksuserdb.cpp:1864
QStringRef name() const const
bool UpdateDarkFrame(const QVariantMap &oneFrame)
KSUserDB::UpdateDarkFrame Updates an existing dark frame record in the data, replace all values match...
Definition: ksuserdb.cpp:743
bool GetAllDSLRLenses(QList< OAL::DSLRLens * > &dslrlens_list)
updates the dslr list with all DSLR lenses from database List is cleared and then filled with content...
Definition: ksuserdb.cpp:2831
bool empty() const const
QMap::iterator end()
QSqlDatabase addDatabase(const QString &type, const QString &connectionName)
double toDouble(bool *ok) const const
bool GetAllProfiles(QList< QSharedPointer< ProfileInfo > > &profiles)
GetAllProfiles Return all profiles in a QList.
Definition: ksuserdb.cpp:2651
QString fromLocal8Bit(const char *str, int size)
bool DeleteEquipment(const QString &type, const QString &id)
Erase the equipment with given type and unique id Valid equipment types: "telescope",...
Definition: ksuserdb.cpp:1421
bool AddObserver(const QString &name, const QString &surname, const QString &contact)
Adds a new observer into the database.
Definition: ksuserdb.cpp:589
bool FindObserver(const QString &name, const QString &surname)
Returns the unique id of the user with given name & surname.
Definition: ksuserdb.cpp:628
bool AddFilter(const filterProperties *fp)
Add a new filter to the database.
Definition: ksuserdb.cpp:1779
bool AddHorizon(ArtificialHorizonEntity *horizon)
Adds a new artificial horizon row into the database.
Definition: ksuserdb.cpp:2281
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
virtual void setTable(const QString &tableName)
QXmlStreamReader::TokenType readNext()
virtual bool insertRows(int row, int count, const QModelIndex &parent) override
bool GetOpticalTrainSettings(uint32_t train, QVariantMap &settings)
Populate the reference passed with settings for one paritcular Train.
Definition: ksuserdb.cpp:3117
QString filePath() const const
int toInt(bool *ok) const const
NoError
int toInt(bool *ok, int base) const const
Definition: scope.h:17
QString readElementText(QXmlStreamReader::ReadElementTextBehaviour behaviour)
QXmlStreamAttributes attributes() const const
QSqlError lastError() const const
double toDouble(bool *ok) const const
T & last()
QString & remove(int position, int n)
bool GetAllHorizons(QList< ArtificialHorizonEntity * > &horizonList)
Gets all the artificial horizon rows from the database.
Definition: ksuserdb.cpp:2190
QString label(StandardShortcut id)
bool getLastOpticalElement(QJsonObject &element)
getLastOpticalElement Return last inserted scope or lens
Definition: ksuserdb.cpp:2893
bool AddDSLRLens(const QString &model, const QString &vendor, const double focalLength, const double focalRatio)
Appends the DSLR lens with given details in the database.
Definition: ksuserdb.cpp:2774
bool AddLens(const QString &vendor, const QString &model, const double &factor)
Add a new lens to the database.
Definition: ksuserdb.cpp:1685
QString text() const const
AppLocalDataLocation
bool setRecord(int row, const QSqlRecord &values)
QString toString() const const
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
bool AddFlag(const QString &ra, const QString &dec, const QString &epoch, const QString &image_name, const QString &label, const QString &labelColor)
Add a new Flag with given parameters.
Definition: ksuserdb.cpp:1347
bool GetAllFlags(QList< QStringList > &flagList)
Returns a QList populated with all stored flags Order: const QString &ra, const QString &dec,...
Definition: ksuserdb.cpp:1377
bool AddOpticalTrain(const QVariantMap &oneTrain)
Add a new optical train to the database.
Definition: ksuserdb.cpp:916
QString filePath(const QString &fileName) const const
void setValue(int index, const QVariant &val)
bool AddScope(const QString &model, const QString &vendor, const QString &type, const double &aperture, const double &focalLength)
Appends the scope with given details in the database.
Definition: ksuserdb.cpp:1473
OnManualSubmit
void clear()
int count(const T &value) const const
QString fieldName(int index) const const
bool AddOpticalTrainSettings(uint32_t train, const QByteArray &settings)
Add new Train settings to the database.
Definition: ksuserdb.cpp:3053
bool AddEyepiece(const QString &vendor, const QString &model, const double &focalLength, const double &fov, const QString &fovunit)
Add new eyepiece to database.
Definition: ksuserdb.cpp:1581
bool isStartElement() const const
bool atEnd() const const
int count() const const
QSqlDatabase database(const QString &connectionName, bool open)
bool GetAllLenses(QList< OAL::Lens * > &m_lensList)
Populate the reference passed with all lenses.
Definition: ksuserdb.cpp:1741
virtual bool select()
bool GetAllImageOverlays(QList< ImageOverlay > *imageOverlayList)
Gets all the image overlay rows from the database.
Definition: ksuserdb.cpp:2433
virtual int rowCount(const QModelIndex &parent) const const override
Definition: dslrlens.h:17
QString & append(QChar ch)
virtual bool setData(const QModelIndex &index, const QVariant &value, int role) override
bool AddDarkFrame(const QVariantMap &oneFrame)
KSUserDB::AddDarkFrame Saves a new dark frame data to the database.
Definition: ksuserdb.cpp:714
void AddProfileSettings(uint32_t profile, const QByteArray &settings)
Add new profile settings to the database.
Definition: ksuserdb.cpp:2964
QString toString() const const
bool DeleteAllHorizons()
Deletes all artificial horizon rows from the database.
Definition: ksuserdb.cpp:2250
bool DeleteAllImageOverlays()
Deletes all image overlay rows from the database.
Definition: ksuserdb.cpp:2355
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:02:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:02:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.