Kstars
ksuserdb.cpp
39 QString current_dbfile = QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath("userdb.sqlite");
56 QFileInfo dbfile(QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath("userdb.sqlite"));
121 // Starting with 2.9.7, we are using SCHEMA_VERSION which now decoupled from KStars Version and starts at 300
176 QString columnQuery = QString("ALTER TABLE profile ADD COLUMN remotedrivers TEXT DEFAULT NULL");
198 QString columnQuery = QString("ALTER TABLE customdrivers ADD COLUMN Manufacturer TEXT DEFAULT NULL");
296 // Need to offset primary key by 100,000 to differential it from scopes and keep it backward compatible.
355////////////////////////////////////////////////////////////////////////////////////////////////////////
357////////////////////////////////////////////////////////////////////////////////////////////////////////
365////////////////////////////////////////////////////////////////////////////////////////////////////////
367////////////////////////////////////////////////////////////////////////////////////////////////////////
479 tables.append("CREATE TABLE profile (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, host "
480 "TEXT, port INTEGER, city TEXT, province TEXT, country TEXT, indiwebmanagerport INTEGER DEFAULT "
481 "NULL, autoconnect INTEGER DEFAULT 1, guidertype INTEGER DEFAULT 0, guiderhost TEXT, guiderport INTEGER,"
486 tables.append("INSERT INTO profile (name, host, port) VALUES ('Simulators', 'localhost', 7624)");
491 tables.append("CREATE TABLE driver (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, label TEXT NOT NULL, role "
493 //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))");
495 tables.append("INSERT INTO driver (label, role, profile) VALUES ('Telescope Simulator', 'Mount', 1)");
497 tables.append("INSERT INTO driver (label, role, profile) VALUES ('Focuser Simulator', 'Focuser', 1)");
499 tables.append("CREATE TABLE profilesettings (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, "
504 "dustcap TEXT DEFAULT NULL, lightbox TEXT DEFAULT NULL, scope TEXT DEFAULT NULL, reducer REAL DEFAULT 1, "
505 "rotator TEXT DEFAULT NULL, focuser TEXT DEFAULT NULL, filterwheel TEXT DEFAULT NULL, camera TEXT DEFAULT NULL, "
508 tables.append("CREATE TABLE opticaltrainsettings (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, "
511 tables.append("CREATE TABLE IF NOT EXISTS darkframe (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, ccd TEXT "
512 "NOT NULL, chip INTEGER DEFAULT 0, binX INTEGER, binY INTEGER, temperature REAL, gain INTEGER DEFAULT -1, "
513 "iso TEXT DEFAULT NULL, duration REAL, filename TEXT NOT NULL, defectmap TEXT DEFAULT NULL, timestamp "
521 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)"
522 "VALUES ('CDS/P/DSS2/color', 'DSS Colored', 'Color composition generated by CDS. This HiPS survey is based on 2 others HiPS surveys,"
523 " respectively DSS2-red and DSS2-blue HiPS, both of them directly generated from original scanned plates downloaded"
524 " from STScI site. The red component has been built from POSS-II F, AAO-SES,SR and SERC-ER plates. The blue component"
525 " has been build from POSS-II J and SERC-J,EJ. The green component is based on the mean of other components. Three"
526 " missing plates from red survey (253, 260, 359) has been replaced by pixels from the DSSColor STScI jpeg survey."
527 " The 11 missing blue plates (mainly in galactic plane) have not been replaced (only red component).',"
530 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)"
531 "VALUES ('CDS/P/2MASS/color', '2MASS Color J (1.23 microns), H (1.66 microns), K (2.16 microns)',"
532 "'2MASS has uniformly scanned the entire sky in three near-infrared bands to detect and characterize point sources"
533 " brighter than about 1 mJy in each band, with signal-to-noise ratio (SNR) greater than 10, using a pixel size of"
534 " 2.0\". This has achieved an 80,000-fold improvement in sensitivity relative to earlier surveys. 2MASS used two"
535 " highly-automated 1.3-m telescopes, one at Mt. Hopkins, AZ, and one at CTIO, Chile. Each telescope was equipped with"
536 " a three-channel camera, each channel consisting of a 256x256 array of HgCdTe detectors, capable of observing the"
537 " sky simultaneously at J (1.25 microns), H (1.65 microns), and Ks (2.17 microns). The University of Massachusetts"
538 " (UMass) was responsible for the overall management of the project, and for developing the infrared cameras and"
539 " on-site computing systems at both facilities. The Infrared Processing and Analysis Center (IPAC) is responsible"
540 " for all data processing through the Production Pipeline, and construction and distribution of the data products."
544 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)"
545 "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"
546 " highest-energy form of light. This survey sums all data observed by the Fermi mission up to week 396. This version"
547 " of the Fermi survey are intensity maps where the summed counts maps are divided by the exposure for each pixel"
548 ". We anticipate using the HEASARC Hera capabilities to update this survey on a roughly quarterly basis. Data is"
549 " 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 ,"
550 " 3-300 GeV Band 5. The SkyView data are based upon a Cartesian projection of the counts divided by the exposure maps."
551 " In the Cartesian projection pixels near the pole have a much smaller area than pixels on the equator, so these"
552 " pixels have smaller integrated flux. When creating large scale images in other projections users may wish to make"
553 " sure to compensate for this effect the flux conserving clip-resampling option.', '9', 'equatorial', '512', 'jpeg fits',"
601 // Need to offset primary key by 100,000 to differential it from scopes and keep it backward compatible.
621////////////////////////////////////////////////////////////////////////////////////////////////////////
623////////////////////////////////////////////////////////////////////////////////////////////////////////
660////////////////////////////////////////////////////////////////////////////////////////////////////////
662////////////////////////////////////////////////////////////////////////////////////////////////////////
683////////////////////////////////////////////////////////////////////////////////////////////////////////
685////////////////////////////////////////////////////////////////////////////////////////////////////////
710////////////////////////////////////////////////////////////////////////////////////////////////////////
712////////////////////////////////////////////////////////////////////////////////////////////////////////
747 * @param oneFrame Map that contains 1 to 1 correspondence with the database table, except for primary key and timestamp.
775 * @brief KSUserDB::UpdateDarkFrame Updates an existing dark frame record in the data, replace all values matching the supplied ID
803 * @brief KSUserDB::DeleteDarkFrame Delete from database a dark frame record that matches the filename field.
827////////////////////////////////////////////////////////////////////////////////////////////////////////
829////////////////////////////////////////////////////////////////////////////////////////////////////////
860////////////////////////////////////////////////////////////////////////////////////////////////////////
862////////////////////////////////////////////////////////////////////////////////////////////////////////
891////////////////////////////////////////////////////////////////////////////////////////////////////////
893////////////////////////////////////////////////////////////////////////////////////////////////////////
914////////////////////////////////////////////////////////////////////////////////////////////////////////
916////////////////////////////////////////////////////////////////////////////////////////////////////////
947////////////////////////////////////////////////////////////////////////////////////////////////////////
949////////////////////////////////////////////////////////////////////////////////////////////////////////
982////////////////////////////////////////////////////////////////////////////////////////////////////////
984////////////////////////////////////////////////////////////////////////////////////////////////////////
1015////////////////////////////////////////////////////////////////////////////////////////////////////////
1017////////////////////////////////////////////////////////////////////////////////////////////////////////
1038////////////////////////////////////////////////////////////////////////////////////////////////////////
1040////////////////////////////////////////////////////////////////////////////////////////////////////////
1072////////////////////////////////////////////////////////////////////////////////////////////////////////
1074////////////////////////////////////////////////////////////////////////////////////////////////////////
1105////////////////////////////////////////////////////////////////////////////////////////////////////////
1107////////////////////////////////////////////////////////////////////////////////////////////////////////
1129////////////////////////////////////////////////////////////////////////////////////////////////////////
1131////////////////////////////////////////////////////////////////////////////////////////////////////////
1161////////////////////////////////////////////////////////////////////////////////////////////////////////
1163////////////////////////////////////////////////////////////////////////////////////////////////////////
1179 for (QMap<QString, QString>::const_iterator iter = oneSource.begin(); iter != oneSource.end(); ++iter)
1188////////////////////////////////////////////////////////////////////////////////////////////////////////
1190////////////////////////////////////////////////////////////////////////////////////////////////////////
1212////////////////////////////////////////////////////////////////////////////////////////////////////////
1214////////////////////////////////////////////////////////////////////////////////////////////////////////
1244////////////////////////////////////////////////////////////////////////////////////////////////////////
1246////////////////////////////////////////////////////////////////////////////////////////////////////////
1262 for (QMap<QString, QVariant>::const_iterator iter = oneInfo.begin(); iter != oneInfo.end(); ++iter)
1271////////////////////////////////////////////////////////////////////////////////////////////////////////
1273////////////////////////////////////////////////////////////////////////////////////////////////////////
1293////////////////////////////////////////////////////////////////////////////////////////////////////////
1295////////////////////////////////////////////////////////////////////////////////////////////////////////
1317////////////////////////////////////////////////////////////////////////////////////////////////////////
1319////////////////////////////////////////////////////////////////////////////////////////////////////////
1352////////////////////////////////////////////////////////////////////////////////////////////////////////
1354////////////////////////////////////////////////////////////////////////////////////////////////////////
1377////////////////////////////////////////////////////////////////////////////////////////////////////////
1379////////////////////////////////////////////////////////////////////////////////////////////////////////
1407////////////////////////////////////////////////////////////////////////////////////////////////////////
1409////////////////////////////////////////////////////////////////////////////////////////////////////////
1451////////////////////////////////////////////////////////////////////////////////////////////////////////
1453////////////////////////////////////////////////////////////////////////////////////////////////////////
1475////////////////////////////////////////////////////////////////////////////////////////////////////////
1477////////////////////////////////////////////////////////////////////////////////////////////////////////
1503////////////////////////////////////////////////////////////////////////////////////////////////////////
1505////////////////////////////////////////////////////////////////////////////////////////////////////////
1506bool KSUserDB::AddScope(const QString &model, const QString &vendor, const QString &type, const double &aperture,
1536////////////////////////////////////////////////////////////////////////////////////////////////////////
1538////////////////////////////////////////////////////////////////////////////////////////////////////////
1571////////////////////////////////////////////////////////////////////////////////////////////////////////
1573////////////////////////////////////////////////////////////////////////////////////////////////////////
1611////////////////////////////////////////////////////////////////////////////////////////////////////////
1613////////////////////////////////////////////////////////////////////////////////////////////////////////
1614bool KSUserDB::AddEyepiece(const QString &vendor, const QString &model, const double &focalLength, const double &fov,
1640////////////////////////////////////////////////////////////////////////////////////////////////////////
1642////////////////////////////////////////////////////////////////////////////////////////////////////////
1643bool KSUserDB::AddEyepiece(const QString &vendor, const QString &model, const double &focalLength, const double &fov,
1675////////////////////////////////////////////////////////////////////////////////////////////////////////
1677////////////////////////////////////////////////////////////////////////////////////////////////////////
1715////////////////////////////////////////////////////////////////////////////////////////////////////////
1717////////////////////////////////////////////////////////////////////////////////////////////////////////
1741////////////////////////////////////////////////////////////////////////////////////////////////////////
1743////////////////////////////////////////////////////////////////////////////////////////////////////////
1744bool KSUserDB::AddLens(const QString &vendor, const QString &model, const double &factor, const QString &id)
1771////////////////////////////////////////////////////////////////////////////////////////////////////////
1773////////////////////////////////////////////////////////////////////////////////////////////////////////
1809////////////////////////////////////////////////////////////////////////////////////////////////////////
1811////////////////////////////////////////////////////////////////////////////////////////////////////////
1850////////////////////////////////////////////////////////////////////////////////////////////////////////
1852////////////////////////////////////////////////////////////////////////////////////////////////////////
1894////////////////////////////////////////////////////////////////////////////////////////////////////////
1896////////////////////////////////////////////////////////////////////////////////////////////////////////
1940////////////////////////////////////////////////////////////////////////////////////////////////////////
1942////////////////////////////////////////////////////////////////////////////////////////////////////////
1960////////////////////////////////////////////////////////////////////////////////////////////////////////
1962////////////////////////////////////////////////////////////////////////////////////////////////////////
1980////////////////////////////////////////////////////////////////////////////////////////////////////////
1982////////////////////////////////////////////////////////////////////////////////////////////////////////
2000////////////////////////////////////////////////////////////////////////////////////////////////////////
2002////////////////////////////////////////////////////////////////////////////////////////////////////////
2020////////////////////////////////////////////////////////////////////////////////////////////////////////
2022////////////////////////////////////////////////////////////////////////////////////////////////////////
2075////////////////////////////////////////////////////////////////////////////////////////////////////////
2077////////////////////////////////////////////////////////////////////////////////////////////////////////
2113////////////////////////////////////////////////////////////////////////////////////////////////////////
2115////////////////////////////////////////////////////////////////////////////////////////////////////////
2146////////////////////////////////////////////////////////////////////////////////////////////////////////
2148////////////////////////////////////////////////////////////////////////////////////////////////////////
2685 views.setData(views.index(row, 2), QJsonDocument(view.toJson()).toJson(QJsonDocument::Compact));
2786 rc = query.exec("DELETE FROM opticaltrainsettings WHERE opticaltrain IN (select id FROM opticaltrains WHERE profile=" +
2819 if (!query.exec(QString("UPDATE profile SET name='%1' WHERE id=%2").arg(pi->name).arg(pi->id)))
2826 QString("UPDATE profile SET host='%1',port=%2 WHERE id=%3").arg(pi->host).arg((pi->port)).arg(pi->id)))
2850 if (!query.exec(QString("UPDATE profile SET autoconnect=%1 WHERE id=%2").arg(pi->autoConnect ? 1 : 0).arg(pi->id)))
2854 if (!query.exec(QString("UPDATE profile SET portselector=%1 WHERE id=%2").arg(pi->portSelector ? 1 : 0).arg(pi->id)))
2858 if (!query.exec(QString("UPDATE profile SET guidertype=%1 WHERE id=%2").arg(pi->guidertype).arg(pi->id)))
2862 if (!query.exec(QString("UPDATE profile SET indihub=%1 WHERE id=%2").arg(pi->indihub).arg(pi->id)))
2868 if (!query.exec(QString("UPDATE profile SET guiderhost='%1' WHERE id=%2").arg(pi->guiderhost).arg(pi->id)))
2870 if (!query.exec(QString("UPDATE profile SET guiderport=%1 WHERE id=%2").arg(pi->guiderport).arg(pi->id)))
2875 if (!query.exec(QString("UPDATE profile SET remotedrivers='%1' WHERE id=%2").arg(pi->remotedrivers).arg(pi->id)))
2879 if (!query.exec(QString("UPDATE profile SET scripts='%1' WHERE id=%2").arg(QString::fromLocal8Bit(pi->scripts)).arg(
2895 /*if (pi->customDrivers.isEmpty() == false && !query.exec(QString("INSERT INTO custom_driver (drivers, profile) VALUES('%1',%2)").arg(pi->customDrivers).arg(pi->id)))
2992 qDebug() << Q_FUNC_INFO << "custom driver select error: " << custom_driver.query().lastQuery() << custom_driver.lastError().text();
3024bool KSUserDB::AddDSLRLens(const QString &model, const QString &vendor, const double focalLength, const double focalRatio)
3051bool KSUserDB::AddDSLRLens(const QString &model, const QString &vendor, const double focalLength, const double focalRatio,
3362 return query.exec(QString("DELETE FROM opticaltrainsettings WHERE opticaltrain=%1").arg(train));
3400////////////////////////////////////////////////////////////////////////////////////////////////////////
3402////////////////////////////////////////////////////////////////////////////////////////////////////////
3435////////////////////////////////////////////////////////////////////////////////////////////////////////
3437////////////////////////////////////////////////////////////////////////////////////////////////////////
3468////////////////////////////////////////////////////////////////////////////////////////////////////////
3470////////////////////////////////////////////////////////////////////////////////////////////////////////
3491////////////////////////////////////////////////////////////////////////////////////////////////////////
3493////////////////////////////////////////////////////////////////////////////////////////////////////////
bool GetAllImageOverlays(QList< ImageOverlay > *imageOverlayList)
Gets all the image overlay rows from the database.
Definition ksuserdb.cpp:2466
bool UpdateCollimationOverlayElement(const QVariantMap &oneElement, int id)
Update an existing collimation overlay element.
Definition ksuserdb.cpp:3438
bool AddOpticalTrain(const QVariantMap &oneTrain)
Add a new optical train to the database.
Definition ksuserdb.cpp:950
bool AddFilter(const filterProperties *fp)
Add a new filter to the database.
Definition ksuserdb.cpp:1812
bool AddSkyMapView(const SkyMapView &view)
Adds a new sky map view row in the database.
Definition ksuserdb.cpp:2656
bool AddCollimationOverlayElement(const QVariantMap &oneElement)
Add a new collimation overlay element to the database.
Definition ksuserdb.cpp:3403
bool AddObserver(const QString &name, const QString &surname, const QString &contact)
Adds a new observer into the database.
Definition ksuserdb.cpp:624
bool AddLens(const QString &vendor, const QString &model, const double &factor)
Add a new lens to the database.
Definition ksuserdb.cpp:1718
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:1574
bool GetAllHorizons(QList< ArtificialHorizonEntity * > &horizonList)
Gets all the artificial horizon rows from the database.
Definition ksuserdb.cpp:2223
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:3024
bool getLastOpticalElement(QJsonObject &element)
getLastOpticalElement Return last inserted scope or lens
Definition ksuserdb.cpp:3143
void AddProfileSettings(uint32_t profile, const QByteArray &settings)
Add new profile settings to the database.
Definition ksuserdb.cpp:3214
bool AddImagingPlannerEntry(const ImagingPlannerDBEntry &entry)
Adds a new Imaging Planner row into the database.
Definition ksuserdb.cpp:2547
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:713
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:1380
bool GetAllFlags(QList< QStringList > &flagList)
Returns a QList populated with all stored flags Order: const QString &ra, const QString &dec,...
Definition ksuserdb.cpp:1410
bool GetAllSkyMapViews(QList< SkyMapView > &skyMapViewList)
Gets all the sky map view rows from the database.
Definition ksuserdb.cpp:2691
bool AddHorizon(ArtificialHorizonEntity *horizon)
Adds a new artificial horizon row into the database.
Definition ksuserdb.cpp:2314
bool DeleteDarkFrame(const QString &filename)
KSUserDB::DeleteDarkFrame Delete from database a dark frame record that matches the filename field.
Definition ksuserdb.cpp:806
bool GetAllLenses(QList< OAL::Lens * > &m_lensList)
Populate the reference passed with all lenses.
Definition ksuserdb.cpp:1774
bool DeleteAllSkyMapViews()
Deletes all the sky map views stored in the database.
Definition ksuserdb.cpp:2631
bool GetAllFilters(QList< OAL::Filter * > &m_filterList)
Populate the reference passed with all filters.
Definition ksuserdb.cpp:1897
bool AddDarkFrame(const QVariantMap &oneFrame)
KSUserDB::AddDarkFrame Saves a new dark frame data to the database.
Definition ksuserdb.cpp:749
bool AddImageOverlay(const ImageOverlay &overlay)
Adds a new image overlay row into the database.
Definition ksuserdb.cpp:2413
bool GetProfileSettings(uint32_t profile, QVariantMap &settings)
Populate the reference passed with settings for one paritcular profile.
Definition ksuserdb.cpp:3268
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:686
bool GetCollimationOverlayElements(QList< QVariantMap > &collimationOverlayElements)
Populate the reference passed with all collimation overlay elements.
Definition ksuserdb.cpp:3494
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:1506
bool DeleteEquipment(const QString &type, const QString &id)
Erase the equipment with given type and unique id Valid equipment types: "telescope",...
Definition ksuserdb.cpp:1454
bool DeleteAllEquipment(const QString &type)
Erases the whole equipment table of given type.
Definition ksuserdb.cpp:1478
bool UpdateDarkFrame(const QVariantMap &oneFrame)
KSUserDB::UpdateDarkFrame Updates an existing dark frame record in the data, replace all values match...
Definition ksuserdb.cpp:778
bool GetOpticalTrains(uint32_t profileID, QList< QVariantMap > &opticalTrains)
Populate the reference passed with all optical trains.
Definition ksuserdb.cpp:1041
bool UpdateOpticalTrain(const QVariantMap &oneTrain, int id)
Update an existing optical train.
Definition ksuserdb.cpp:985
bool FindObserver(const QString &name, const QString &surname)
Returns the unique id of the user with given name & surname.
Definition ksuserdb.cpp:663
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:3081
bool GetOpticalTrainSettings(uint32_t train, QVariantMap &settings)
Populate the reference passed with settings for one paritcular Train.
Definition ksuserdb.cpp:3365
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:1614
bool DeleteAllImagingPlannerEntries()
Deletes all Imaging Planner rows from the database.
Definition ksuserdb.cpp:2522
bool DeleteAllImageOverlays()
Deletes all image overlay rows from the database.
Definition ksuserdb.cpp:2388
bool GetAllProfiles(QList< QSharedPointer< ProfileInfo > > &profiles)
GetAllProfiles Return all profiles in a QList.
Definition ksuserdb.cpp:2901
bool GetAllEyepieces(QList< OAL::Eyepiece * > &m_eyepieceList)
Populate the reference passed with all eyepieces.
Definition ksuserdb.cpp:1678
bool AddOpticalTrainSettings(uint32_t train, const QByteArray &settings)
Add new Train settings to the database.
Definition ksuserdb.cpp:3301
bool DeleteAllHorizons()
Deletes all artificial horizon rows from the database.
Definition ksuserdb.cpp:2283
bool GetAllImagingPlannerEntries(QList< ImagingPlannerDBEntry > *entryList)
Gets all the Imaging Planner rows from the database.
Definition ksuserdb.cpp:2585
Type type(const QSqlDatabase &db)
std::optional< QSqlQuery > query(const QString &queryStatement)
QString label(StandardShortcut id)
bool insertRow(int row, const QModelIndex &parent)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
QString filePath(const QString &fileName) const const
bool copy(const QString &fileName, const QString &newName)
bool remove()
bool exists(const QString &path)
QString filePath() const const
Compact
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
bool isNull() const const
bool isObject() const const
QJsonObject object() const const
QByteArray toJson(JsonFormat format) const const
NoError
void append(QList< T > &&value)
void clear()
qsizetype count() const const
bool empty() const const
T & last()
iterator begin()
iterator end()
QSqlDatabase addDatabase(QSqlDriver *driver, const QString &connectionName)
QSqlDatabase database(const QString &connectionName, bool open)
QString text() const const
QSqlError lastError() const const
void append(const QSqlField &field)
int count() const const
QString fieldName(int index) const const
void remove(int pos)
void setValue(const QString &name, const QVariant &val)
QVariant value(const QString &name) const const
OnManualSubmit
virtual void clear() override
bool insertRecord(int row, const QSqlRecord &record)
virtual bool insertRows(int row, int count, const QModelIndex &parent) override
QSqlRecord record() const const
virtual bool removeRows(int row, int count, const QModelIndex &parent) override
virtual int rowCount(const QModelIndex &parent) const const override
virtual bool select()
virtual bool setData(const QModelIndex &index, const QVariant &value, int role) override
virtual void setEditStrategy(EditStrategy strategy)
virtual void setFilter(const QString &filter)
bool setRecord(int row, const QSqlRecord &values)
virtual void setTable(const QString &tableName)
bool submitAll()
AppLocalDataLocation
QString & append(QChar ch)
QString arg(Args &&... args) const const
QString fromLocal8Bit(QByteArrayView str)
QString number(double n, char format, int precision)
QString & remove(QChar ch, Qt::CaseSensitivity cs)
double toDouble(bool *ok) const const
int toInt(bool *ok, int base) const const
QByteArray toUtf8() const const
QString toString() const const
QByteArray toByteArray() const const
double toDouble(bool *ok) const const
int toInt(bool *ok) const const
QString toString() const const
QStringView value(QAnyStringView namespaceUri, QAnyStringView name) const const
bool atEnd() const const
QXmlStreamAttributes attributes() const const
bool isEndElement() const const
bool isStartElement() const const
QStringView name() const const
QString readElementText(ReadElementTextBehaviour behaviour)
TokenType readNext()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.