/usr/include/qxrunner/appsettings.h is in libqxrunner-dev 0.9.2-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | /*!
* \file appsettings.h
*
* \brief Declares class AppSettings.
*/
#ifndef APPSETTINGS_H
#define APPSETTINGS_H
#include "runnerwindowclient.h"
namespace Ui {
class RunnerWindow;
}
namespace QxRunner {
class RunnerWindow;
/*!
* \brief The AppSettings class manages persistent platform-independent
* application settings.
*
* This helper class is introduced to avoid bloating the main window
* class with rudimentary code. It is a friend of RunnerWindow because
* it not only reads or writes the settings file but also applies the
* settings to the main window by restoring window geometry and the like
* at program start-up. For missing or invalid settings reasonable defaults
* are used.
*
* \sa \ref settings
*/
class AppSettings : public RunnerWindowClient
{
public: // Operations
/*!
* Constructs an application settings object with the
* given \a window.
*/
AppSettings(RunnerWindow* window);
/*!
* Destroys this application settings.
*/
virtual ~AppSettings();
/*!
* Writes all settings into the INI file.
*/
void writeSettings();
/*!
* Reads and applies settings which have nothing to do with
* window geometry or the layout of the view columns.
*/
void applyBaseSettings() const;
/*!
* Reads and applies settings which define window geometry.
* Restores the main window's toolbars and dock widgets.
*/
void applyWindowSettings() const;
/*!
* Shows the columns in the views which have been visible at last
* program exit and resizes them.
*/
void applyColumnSettings() const;
private: // Operations
/*!
* Returns the pointer to the internal structure of the main window.
*/
Ui::RunnerWindow* windowUi() const;
// Copy and assignment not supported.
AppSettings(const AppSettings&);
AppSettings& operator=(const AppSettings&);
private: // Attributes
QString m_organization;
QString m_application;
};
} // namespace
#endif // APPSETTINGS_H
|