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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;
import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.QtSupport;
/**
Abstract base class for KDE configuration file loading/saving.
This class forms the base for all classes that implement some
manner of loading/saving to configuration files. It is an
abstract base class, meaning that you cannot directly instantiate
objects of this class. As of right now, the only back end available
is one to read/write to INI-style files, but in the future, other
formats may be available, such as XML or a database.
@author Preston Brown <pbrown@kde.org>,
Matthias Kalle Dalheimer <kalle@kde.org>
@short KDE Configuration file loading/saving abstract base class.
*/
public class TDEConfigBackEnd implements QtSupport {
private long _qt;
private boolean _allocatedInJavaWorld = true;
protected TDEConfigBackEnd(Class dummy){}
/**
Constructs a configuration back end.
@param _config Specifies the configuration object which values
will be passed to as they are read, or from where values
to be written to will be obtained from.
@param _fileName The name of the file in which config
data is stored. All registered configuration directories
will be looked in in order of decreasing relevance.
@param _resType the resource type of the fileName specified, _if_
it is not an absolute path (otherwise this parameter is ignored).
@param _useKDEGlobals If true, the user's system-wide kdeglobals file
will be imported into the config object. If false, only
the filename specified will be dealt with.
@short Constructs a configuration back end.
*/
/**
Parses all configuration files for a configuration object. This
method must be reimplemented by the derived classes.
@return Whether or not parsing was successful.
@short Parses all configuration files for a configuration object.
*/
public native boolean parseConfigFiles();
/**
Writes configuration data to file(s). This method must be
reimplemented by the derived classes.
@param bMerge Specifies whether the old config file already
on disk should be merged in with the data in memory. If true,
data is read off the disk and merged. If false, the on-disk
file is removed and only in-memory data is written out.
@short Writes configuration data to file(s).
*/
public native void sync(boolean bMerge);
public native void sync();
/**
Changes the filenames associated with this back end. You should
probably reparse your config info after doing this.
@param _fileName the new filename to use
@param _resType the resource type of the fileName specified, _if_
it is not an absolute path (otherwise this parameter is ignored).
@param _useKDEGlobals specifies whether or not to also parse the
global KDE configuration files.
@short Changes the filenames associated with this back end.
*/
public native void changeFileName(String _fileName, String _resType, boolean _useKDEGlobals);
/**
Returns the state of the app-config object.
@short Returns the state of the app-config object.
@see TDEConfig#getConfigState
*/
public native int getConfigState();
/**
Returns the filename as passed to the constructor.
@return the filename as passed to the constructor.
@short Returns the filename as passed to the constructor.
*/
public native String fileName();
/**
Returns the resource type as passed to the constructor.
@return the resource type as passed to the constructor.
@short Returns the resource type as passed to the constructor.
*/
public native String resource();
/**
Set the locale string that defines the current language.
@param _localeString the identifier of the language
@short Set the locale string that defines the current language.
@see TDELocale
*/
public native void setLocaleString(String _localeString);
/**
Set the file mode for newly created files.
@param mode the filemode (as in chmod)
@short Set the file mode for newly created files.
*/
public native void setFileWriteMode(int mode);
/**
Check whether the config files are writable.
@param warnUser Warn the user if the configuration files are not writable.
@return Indicates that all of the configuration files used are writable.
@short Check whether the config files are writable.
*/
public native boolean checkConfigFilesWritable(boolean warnUser);
/**
Returns a lock file object for the configuration file
@param bGlobal If true, returns a lock file object for kdeglobals
@short Returns a lock file object for the configuration file
*/
// TDELockFile::Ptr lockFile(bool arg1); >>>> NOT CONVERTED
// TDELockFile::Ptr lockFile(); >>>> NOT CONVERTED
}
|