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");
293 // Need to offset primary key by 100,000 to differential it from scopes and keep it backward compatible.
352////////////////////////////////////////////////////////////////////////////////////////////////////////
354////////////////////////////////////////////////////////////////////////////////////////////////////////
362////////////////////////////////////////////////////////////////////////////////////////////////////////
364////////////////////////////////////////////////////////////////////////////////////////////////////////
476 tables.append("CREATE TABLE profile (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, host "
477 "TEXT, port INTEGER, city TEXT, province TEXT, country TEXT, indiwebmanagerport INTEGER DEFAULT "
478 "NULL, autoconnect INTEGER DEFAULT 1, guidertype INTEGER DEFAULT 0, guiderhost TEXT, guiderport INTEGER,"
483 tables.append("INSERT INTO profile (name, host, port) VALUES ('Simulators', 'localhost', 7624)");
488 tables.append("CREATE TABLE driver (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, label TEXT NOT NULL, role "
490 //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))");
492 tables.append("INSERT INTO driver (label, role, profile) VALUES ('Telescope Simulator', 'Mount', 1)");
494 tables.append("INSERT INTO driver (label, role, profile) VALUES ('Focuser Simulator', 'Focuser', 1)");
496 tables.append("CREATE TABLE profilesettings (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, "
501 "dustcap TEXT DEFAULT NULL, lightbox TEXT DEFAULT NULL, scope TEXT DEFAULT NULL, reducer REAL DEFAULT 1, "
502 "rotator TEXT DEFAULT NULL, focuser TEXT DEFAULT NULL, filterwheel TEXT DEFAULT NULL, camera TEXT DEFAULT NULL, "
505 tables.append("CREATE TABLE opticaltrainsettings (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, "
508 tables.append("CREATE TABLE IF NOT EXISTS darkframe (id INTEGER DEFAULT NULL PRIMARY KEY AUTOINCREMENT, ccd TEXT "
509 "NOT NULL, chip INTEGER DEFAULT 0, binX INTEGER, binY INTEGER, temperature REAL, gain INTEGER DEFAULT -1, "
510 "iso TEXT DEFAULT NULL, duration REAL, filename TEXT NOT NULL, defectmap TEXT DEFAULT NULL, timestamp "
518 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)"
519 "VALUES ('CDS/P/DSS2/color', 'DSS Colored', 'Color composition generated by CDS. This HiPS survey is based on 2 others HiPS surveys,"
520 " respectively DSS2-red and DSS2-blue HiPS, both of them directly generated from original scanned plates downloaded"
521 " from STScI site. The red component has been built from POSS-II F, AAO-SES,SR and SERC-ER plates. The blue component"
522 " has been build from POSS-II J and SERC-J,EJ. The green component is based on the mean of other components. Three"
523 " missing plates from red survey (253, 260, 359) has been replaced by pixels from the DSSColor STScI jpeg survey."
524 " The 11 missing blue plates (mainly in galactic plane) have not been replaced (only red component).',"
527 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)"
528 "VALUES ('CDS/P/2MASS/color', '2MASS Color J (1.23 microns), H (1.66 microns), K (2.16 microns)',"
529 "'2MASS has uniformly scanned the entire sky in three near-infrared bands to detect and characterize point sources"
530 " brighter than about 1 mJy in each band, with signal-to-noise ratio (SNR) greater than 10, using a pixel size of"
531 " 2.0\". This has achieved an 80,000-fold improvement in sensitivity relative to earlier surveys. 2MASS used two"
532 " highly-automated 1.3-m telescopes, one at Mt. Hopkins, AZ, and one at CTIO, Chile. Each telescope was equipped with"
533 " a three-channel camera, each channel consisting of a 256x256 array of HgCdTe detectors, capable of observing the"
534 " sky simultaneously at J (1.25 microns), H (1.65 microns), and Ks (2.17 microns). The University of Massachusetts"
535 " (UMass) was responsible for the overall management of the project, and for developing the infrared cameras and"
536 " on-site computing systems at both facilities. The Infrared Processing and Analysis Center (IPAC) is responsible"
537 " for all data processing through the Production Pipeline, and construction and distribution of the data products."
541 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)"
542 "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"
543 " highest-energy form of light. This survey sums all data observed by the Fermi mission up to week 396. This version"
544 " of the Fermi survey are intensity maps where the summed counts maps are divided by the exposure for each pixel"
545 ". We anticipate using the HEASARC Hera capabilities to update this survey on a roughly quarterly basis. Data is"
546 " 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 ,"
547 " 3-300 GeV Band 5. The SkyView data are based upon a Cartesian projection of the counts divided by the exposure maps."
548 " In the Cartesian projection pixels near the pole have a much smaller area than pixels on the equator, so these"
549 " pixels have smaller integrated flux. When creating large scale images in other projections users may wish to make"
550 " sure to compensate for this effect the flux conserving clip-resampling option.', '9', 'equatorial', '512', 'jpeg fits',"
598 // Need to offset primary key by 100,000 to differential it from scopes and keep it backward compatible.
618////////////////////////////////////////////////////////////////////////////////////////////////////////
620////////////////////////////////////////////////////////////////////////////////////////////////////////
657////////////////////////////////////////////////////////////////////////////////////////////////////////
659////////////////////////////////////////////////////////////////////////////////////////////////////////
680////////////////////////////////////////////////////////////////////////////////////////////////////////
682////////////////////////////////////////////////////////////////////////////////////////////////////////
707////////////////////////////////////////////////////////////////////////////////////////////////////////
709////////////////////////////////////////////////////////////////////////////////////////////////////////
744 * @param oneFrame Map that contains 1 to 1 correspondence with the database table, except for primary key and timestamp.
772 * @brief KSUserDB::UpdateDarkFrame Updates an existing dark frame record in the data, replace all values matching the supplied ID
800 * @brief KSUserDB::DeleteDarkFrame Delete from database a dark frame record that matches the filename field.
824////////////////////////////////////////////////////////////////////////////////////////////////////////
826////////////////////////////////////////////////////////////////////////////////////////////////////////
857////////////////////////////////////////////////////////////////////////////////////////////////////////
859////////////////////////////////////////////////////////////////////////////////////////////////////////
888////////////////////////////////////////////////////////////////////////////////////////////////////////
890////////////////////////////////////////////////////////////////////////////////////////////////////////
911////////////////////////////////////////////////////////////////////////////////////////////////////////
913////////////////////////////////////////////////////////////////////////////////////////////////////////
944////////////////////////////////////////////////////////////////////////////////////////////////////////
946////////////////////////////////////////////////////////////////////////////////////////////////////////
979////////////////////////////////////////////////////////////////////////////////////////////////////////
981////////////////////////////////////////////////////////////////////////////////////////////////////////
1012////////////////////////////////////////////////////////////////////////////////////////////////////////
1014////////////////////////////////////////////////////////////////////////////////////////////////////////
1035////////////////////////////////////////////////////////////////////////////////////////////////////////
1037////////////////////////////////////////////////////////////////////////////////////////////////////////
1069////////////////////////////////////////////////////////////////////////////////////////////////////////
1071////////////////////////////////////////////////////////////////////////////////////////////////////////
1102////////////////////////////////////////////////////////////////////////////////////////////////////////
1104////////////////////////////////////////////////////////////////////////////////////////////////////////
1126////////////////////////////////////////////////////////////////////////////////////////////////////////
1128////////////////////////////////////////////////////////////////////////////////////////////////////////
1158////////////////////////////////////////////////////////////////////////////////////////////////////////
1160////////////////////////////////////////////////////////////////////////////////////////////////////////
1176 for (QMap<QString, QString>::const_iterator iter = oneSource.begin(); iter != oneSource.end(); ++iter)
1185////////////////////////////////////////////////////////////////////////////////////////////////////////
1187////////////////////////////////////////////////////////////////////////////////////////////////////////
1209////////////////////////////////////////////////////////////////////////////////////////////////////////
1211////////////////////////////////////////////////////////////////////////////////////////////////////////
1241////////////////////////////////////////////////////////////////////////////////////////////////////////
1243////////////////////////////////////////////////////////////////////////////////////////////////////////
1259 for (QMap<QString, QVariant>::const_iterator iter = oneInfo.begin(); iter != oneInfo.end(); ++iter)
1268////////////////////////////////////////////////////////////////////////////////////////////////////////
1270////////////////////////////////////////////////////////////////////////////////////////////////////////
1290////////////////////////////////////////////////////////////////////////////////////////////////////////
1292////////////////////////////////////////////////////////////////////////////////////////////////////////
1314////////////////////////////////////////////////////////////////////////////////////////////////////////
1316////////////////////////////////////////////////////////////////////////////////////////////////////////
1349////////////////////////////////////////////////////////////////////////////////////////////////////////
1351////////////////////////////////////////////////////////////////////////////////////////////////////////
1374////////////////////////////////////////////////////////////////////////////////////////////////////////
1376////////////////////////////////////////////////////////////////////////////////////////////////////////
1404////////////////////////////////////////////////////////////////////////////////////////////////////////
1406////////////////////////////////////////////////////////////////////////////////////////////////////////
1448////////////////////////////////////////////////////////////////////////////////////////////////////////
1450////////////////////////////////////////////////////////////////////////////////////////////////////////
1472////////////////////////////////////////////////////////////////////////////////////////////////////////
1474////////////////////////////////////////////////////////////////////////////////////////////////////////
1500////////////////////////////////////////////////////////////////////////////////////////////////////////
1502////////////////////////////////////////////////////////////////////////////////////////////////////////
1503bool KSUserDB::AddScope(const QString &model, const QString &vendor, const QString &type, const double &aperture,
1533////////////////////////////////////////////////////////////////////////////////////////////////////////
1535////////////////////////////////////////////////////////////////////////////////////////////////////////
1568////////////////////////////////////////////////////////////////////////////////////////////////////////
1570////////////////////////////////////////////////////////////////////////////////////////////////////////
1608////////////////////////////////////////////////////////////////////////////////////////////////////////
1610////////////////////////////////////////////////////////////////////////////////////////////////////////
1611bool KSUserDB::AddEyepiece(const QString &vendor, const QString &model, const double &focalLength, const double &fov,
1637////////////////////////////////////////////////////////////////////////////////////////////////////////
1639////////////////////////////////////////////////////////////////////////////////////////////////////////
1640bool KSUserDB::AddEyepiece(const QString &vendor, const QString &model, const double &focalLength, const double &fov,
1672////////////////////////////////////////////////////////////////////////////////////////////////////////
1674////////////////////////////////////////////////////////////////////////////////////////////////////////
1712////////////////////////////////////////////////////////////////////////////////////////////////////////
1714////////////////////////////////////////////////////////////////////////////////////////////////////////
1738////////////////////////////////////////////////////////////////////////////////////////////////////////
1740////////////////////////////////////////////////////////////////////////////////////////////////////////
1741bool KSUserDB::AddLens(const QString &vendor, const QString &model, const double &factor, const QString &id)
1768////////////////////////////////////////////////////////////////////////////////////////////////////////
1770////////////////////////////////////////////////////////////////////////////////////////////////////////
1806////////////////////////////////////////////////////////////////////////////////////////////////////////
1808////////////////////////////////////////////////////////////////////////////////////////////////////////
1847////////////////////////////////////////////////////////////////////////////////////////////////////////
1849////////////////////////////////////////////////////////////////////////////////////////////////////////
1891////////////////////////////////////////////////////////////////////////////////////////////////////////
1893////////////////////////////////////////////////////////////////////////////////////////////////////////
1937////////////////////////////////////////////////////////////////////////////////////////////////////////
1939////////////////////////////////////////////////////////////////////////////////////////////////////////
1957////////////////////////////////////////////////////////////////////////////////////////////////////////
1959////////////////////////////////////////////////////////////////////////////////////////////////////////
1977////////////////////////////////////////////////////////////////////////////////////////////////////////
1979////////////////////////////////////////////////////////////////////////////////////////////////////////
1997////////////////////////////////////////////////////////////////////////////////////////////////////////
1999////////////////////////////////////////////////////////////////////////////////////////////////////////
2017////////////////////////////////////////////////////////////////////////////////////////////////////////
2019////////////////////////////////////////////////////////////////////////////////////////////////////////
2072////////////////////////////////////////////////////////////////////////////////////////////////////////
2074////////////////////////////////////////////////////////////////////////////////////////////////////////
2110////////////////////////////////////////////////////////////////////////////////////////////////////////
2112////////////////////////////////////////////////////////////////////////////////////////////////////////
2143////////////////////////////////////////////////////////////////////////////////////////////////////////
2145////////////////////////////////////////////////////////////////////////////////////////////////////////
2572 views.setData(views.index(row, 2), QJsonDocument(view.toJson()).toJson(QJsonDocument::Compact));
2673 rc = query.exec("DELETE FROM opticaltrainsettings WHERE opticaltrain IN (select id FROM opticaltrains WHERE profile=" +
2706 if (!query.exec(QString("UPDATE profile SET name='%1' WHERE id=%2").arg(pi->name).arg(pi->id)))
2713 QString("UPDATE profile SET host='%1',port=%2 WHERE id=%3").arg(pi->host).arg((pi->port)).arg(pi->id)))
2737 if (!query.exec(QString("UPDATE profile SET autoconnect=%1 WHERE id=%2").arg(pi->autoConnect ? 1 : 0).arg(pi->id)))
2741 if (!query.exec(QString("UPDATE profile SET portselector=%1 WHERE id=%2").arg(pi->portSelector ? 1 : 0).arg(pi->id)))
2745 if (!query.exec(QString("UPDATE profile SET guidertype=%1 WHERE id=%2").arg(pi->guidertype).arg(pi->id)))
2749 if (!query.exec(QString("UPDATE profile SET indihub=%1 WHERE id=%2").arg(pi->indihub).arg(pi->id)))
2755 if (!query.exec(QString("UPDATE profile SET guiderhost='%1' WHERE id=%2").arg(pi->guiderhost).arg(pi->id)))
2757 if (!query.exec(QString("UPDATE profile SET guiderport=%1 WHERE id=%2").arg(pi->guiderport).arg(pi->id)))
2762 if (!query.exec(QString("UPDATE profile SET remotedrivers='%1' WHERE id=%2").arg(pi->remotedrivers).arg(pi->id)))
2766 if (!query.exec(QString("UPDATE profile SET scripts='%1' WHERE id=%2").arg(QString::fromLocal8Bit(pi->scripts)).arg(
2782 /*if (pi->customDrivers.isEmpty() == false && !query.exec(QString("INSERT INTO custom_driver (drivers, profile) VALUES('%1',%2)").arg(pi->customDrivers).arg(pi->id)))
2879 qDebug() << Q_FUNC_INFO << "custom driver select error: " << custom_driver.query().lastQuery() << custom_driver.lastError().text();
2911bool KSUserDB::AddDSLRLens(const QString &model, const QString &vendor, const double focalLength, const double focalRatio)
2938bool KSUserDB::AddDSLRLens(const QString &model, const QString &vendor, const double focalLength, const double focalRatio,
3249 return query.exec(QString("DELETE FROM opticaltrainsettings WHERE opticaltrain=%1").arg(train));
3287////////////////////////////////////////////////////////////////////////////////////////////////////////
3289////////////////////////////////////////////////////////////////////////////////////////////////////////
3322////////////////////////////////////////////////////////////////////////////////////////////////////////
3324////////////////////////////////////////////////////////////////////////////////////////////////////////
3355////////////////////////////////////////////////////////////////////////////////////////////////////////
3357////////////////////////////////////////////////////////////////////////////////////////////////////////
3378////////////////////////////////////////////////////////////////////////////////////////////////////////
3380////////////////////////////////////////////////////////////////////////////////////////////////////////
bool GetAllImageOverlays(QList< ImageOverlay > *imageOverlayList)
Gets all the image overlay rows from the database.
Definition ksuserdb.cpp:2463
bool UpdateCollimationOverlayElement(const QVariantMap &oneElement, int id)
Update an existing collimation overlay element.
Definition ksuserdb.cpp:3325
bool AddOpticalTrain(const QVariantMap &oneTrain)
Add a new optical train to the database.
Definition ksuserdb.cpp:947
bool AddFilter(const filterProperties *fp)
Add a new filter to the database.
Definition ksuserdb.cpp:1809
bool AddSkyMapView(const SkyMapView &view)
Adds a new sky map view row in the database.
Definition ksuserdb.cpp:2543
bool AddCollimationOverlayElement(const QVariantMap &oneElement)
Add a new collimation overlay element to the database.
Definition ksuserdb.cpp:3290
bool AddObserver(const QString &name, const QString &surname, const QString &contact)
Adds a new observer into the database.
Definition ksuserdb.cpp:621
bool AddLens(const QString &vendor, const QString &model, const double &factor)
Add a new lens to the database.
Definition ksuserdb.cpp:1715
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:1571
bool GetAllHorizons(QList< ArtificialHorizonEntity * > &horizonList)
Gets all the artificial horizon rows from the database.
Definition ksuserdb.cpp:2220
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:2911
bool getLastOpticalElement(QJsonObject &element)
getLastOpticalElement Return last inserted scope or lens
Definition ksuserdb.cpp:3030
void AddProfileSettings(uint32_t profile, const QByteArray &settings)
Add new profile settings to the database.
Definition ksuserdb.cpp:3101
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:710
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:1377
bool GetAllFlags(QList< QStringList > &flagList)
Returns a QList populated with all stored flags Order: const QString &ra, const QString &dec,...
Definition ksuserdb.cpp:1407
bool GetAllSkyMapViews(QList< SkyMapView > &skyMapViewList)
Gets all the sky map view rows from the database.
Definition ksuserdb.cpp:2578
bool AddHorizon(ArtificialHorizonEntity *horizon)
Adds a new artificial horizon row into the database.
Definition ksuserdb.cpp:2311
bool DeleteDarkFrame(const QString &filename)
KSUserDB::DeleteDarkFrame Delete from database a dark frame record that matches the filename field.
Definition ksuserdb.cpp:803
bool GetAllLenses(QList< OAL::Lens * > &m_lensList)
Populate the reference passed with all lenses.
Definition ksuserdb.cpp:1771
bool DeleteAllSkyMapViews()
Deletes all the sky map views stored in the database.
Definition ksuserdb.cpp:2518
bool GetAllFilters(QList< OAL::Filter * > &m_filterList)
Populate the reference passed with all filters.
Definition ksuserdb.cpp:1894
bool AddDarkFrame(const QVariantMap &oneFrame)
KSUserDB::AddDarkFrame Saves a new dark frame data to the database.
Definition ksuserdb.cpp:746
bool AddImageOverlay(const ImageOverlay &overlay)
Adds a new image overlay row into the database.
Definition ksuserdb.cpp:2410
bool GetProfileSettings(uint32_t profile, QVariantMap &settings)
Populate the reference passed with settings for one paritcular profile.
Definition ksuserdb.cpp:3155
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:683
bool GetCollimationOverlayElements(QList< QVariantMap > &collimationOverlayElements)
Populate the reference passed with all collimation overlay elements.
Definition ksuserdb.cpp:3381
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:1503
bool DeleteEquipment(const QString &type, const QString &id)
Erase the equipment with given type and unique id Valid equipment types: "telescope",...
Definition ksuserdb.cpp:1451
bool DeleteAllEquipment(const QString &type)
Erases the whole equipment table of given type.
Definition ksuserdb.cpp:1475
bool UpdateDarkFrame(const QVariantMap &oneFrame)
KSUserDB::UpdateDarkFrame Updates an existing dark frame record in the data, replace all values match...
Definition ksuserdb.cpp:775
bool GetOpticalTrains(uint32_t profileID, QList< QVariantMap > &opticalTrains)
Populate the reference passed with all optical trains.
Definition ksuserdb.cpp:1038
bool UpdateOpticalTrain(const QVariantMap &oneTrain, int id)
Update an existing optical train.
Definition ksuserdb.cpp:982
bool FindObserver(const QString &name, const QString &surname)
Returns the unique id of the user with given name & surname.
Definition ksuserdb.cpp:660
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:2968
bool GetOpticalTrainSettings(uint32_t train, QVariantMap &settings)
Populate the reference passed with settings for one paritcular Train.
Definition ksuserdb.cpp:3252
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:1611
bool DeleteAllImageOverlays()
Deletes all image overlay rows from the database.
Definition ksuserdb.cpp:2385
bool GetAllProfiles(QList< QSharedPointer< ProfileInfo > > &profiles)
GetAllProfiles Return all profiles in a QList.
Definition ksuserdb.cpp:2788
bool GetAllEyepieces(QList< OAL::Eyepiece * > &m_eyepieceList)
Populate the reference passed with all eyepieces.
Definition ksuserdb.cpp:1675
bool AddOpticalTrainSettings(uint32_t train, const QByteArray &settings)
Add new Train settings to the database.
Definition ksuserdb.cpp:3188
bool DeleteAllHorizons()
Deletes all artificial horizon rows from the database.
Definition ksuserdb.cpp:2280
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
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 Mon Nov 4 2024 16:38:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.