71
* This enumeration determines with which application the mount point
72
* of the current mounted share is to be opened.
74
enum OpenWith { FileManager,
78
57
* Returns a static pointer to this class.
80
59
static Smb4KCore *self();
83
* Returns the state the scanner is in.
85
static int scannerState() { return self()->m_scanner_state; }
88
* Returns the state the mounter is in.
90
static int mounterState() { return self()->m_mounter_state; }
93
* Returns the state the print object is in.
95
static int printState() { return self()->m_print_state; }
98
* Returns the state the synchronizer is in.
100
static int synchronizerState() { return self()->m_syncer_state; }
103
62
* Returns TRUE if one of the core classes is doing something.
105
64
static bool isRunning();
108
* Returns the current state the core is in.
110
static int currentState() { return self()->m_current_state; }
113
* Returns a pointer to the scanner object.
115
static Smb4KScanner *scanner() { return self()->m_scanner; }
118
* Returns a pointer to the mounter object.
120
static Smb4KMounter *mounter() { return self()->m_mounter; }
123
* Returns a pointer to the bookmark handler object.
125
static Smb4KBookmarkHandler *bookmarkHandler() { return self()->m_bookmarkHandler; }
128
* Returns a pointer to the printer handler object.
130
static Smb4KPrint *print() { return self()->m_print; }
133
* Returns a pointer to the synchronizer object.
135
static Smb4KSynchronizer *synchronizer() { return self()->m_synchronizer; }
138
* Returns a pointer to the previewer object.
140
static Smb4KPreviewer *previewer() { return self()->m_previewer; }
143
* Returns a pointer to the search object.
145
static Smb4KSearch *search() { return self()->m_search; }
148
* Returns a pointer to the Smb4KSudoWriterInterface object.
150
static Smb4KSudoWriterInterface *sudoWriter() { return Smb4KSudoWriterInterface::self(); }
153
67
* Aborts any action of the core.
155
69
static void abort();
158
* Open the mount point of a share. Which application is used is determined by
159
* the value of @p openWith and - maybe - by settings that were defined by the
162
* @param share The share that is to be opened.
164
* @param openWith Integer of type Smb4KCore::OpenWith. Determines with which
165
* application the share should be opened.
167
static void open( Smb4KShare *share,
168
OpenWith openWith = FileManager );
171
72
* This function initializes the core classes.
177
* This signal is emitted, if one of the core objects
178
* starts or stops running.
180
void runStateChanged();
184
* This slot sets the run state of the scanner.
186
* @param state The run state the scanner is in. For definition of the
187
* run states see smb4kdefs.h header file.
189
void slotSetScannerState( int state );
192
* This slot sets the run state of the mounter.
194
* @param state The run state the mounter is in. For definition of the
195
* run states see smb4kdefs.h header file.
197
void slotSetMounterState( int state );
200
* This slot sets the run state of the synchronizer.
202
* @param state The run state the synchronizer is in. For definition of the
203
* run states see smb4kdefs.h header file.
205
void slotSetSynchronizerState( int state );
208
* This slot sets the run state of the print handler.
210
* @param state The run state the print handler is in. For definition of the
211
* run states see smb4kdefs.h header file.
213
void slotSetPrinterHandlerState( int state );
216
* This slot sets the run state for the previewer.
218
* @param state The state the previewer is in. For definition of the
219
* run states see smb4kdefs.h header file.
221
void slotSetPreviewerState( int state );
224
* This slot sets the run state for the search process.
226
* @param state The state the search is in. For definition of the
227
* tun states see smb4kdefs.h header file.
229
void slotSetSearchState( int state );
232
78
* This slot is connected to the QApplication::aboutToQuit() signal. It is invoked
233
79
* when the application is shut down by the KDE logout or by pressing CTRL+Q, etc.
249
* The scanner object.
251
Smb4KScanner *m_scanner;
254
* The mounter object.
256
Smb4KMounter *m_mounter;
259
* The bookmark handler object.
261
Smb4KBookmarkHandler *m_bookmarkHandler;
264
* The printer handler object.
269
* The synchronizer object.
271
Smb4KSynchronizer *m_synchronizer;
274
* The previewer object.
276
Smb4KPreviewer *m_previewer;
281
Smb4KSearch *m_search;
284
* The state the sanner is in.
289
* The state the mounter is in.
294
* Holds the current state.
299
* The state the printer handler is in.
304
* The state the synchronizer is in.
309
* The state the previewer is in.
311
int m_previewer_state;
314
* The state the search is in.
319
* This function is used to set the current state of the core.
321
* @param state One of the states defined in smb4kdefs.h
323
void setCurrentState( int state );
326
95
* Searches for the needed programs and emits an error
327
96
* if mandatory ones are missing.