21 #ifndef NDEFILEMAN_APPLICATION_H 22 #define NDEFILEMAN_APPLICATION_H 24 #include <QApplication> 26 #include <libfm-qt/libfmqt.h> 27 #include <libfm-qt/editbookmarksdialog.h> 30 #include <QProxyStyle> 31 #include <QTranslator> 35 #include <libfm-qt/core/filepath.h> 36 #include <libfm-qt/core/fileinfo.h> 37 #include <KScreen/Types> 38 #include <KScreen/ConfigOperation> 39 #include <KScreen/GetConfigOperation> 43 class QFileSystemWatcher;
49 class PreferencesDialog;
50 class DesktopPreferencesDialog;
57 virtual int styleHint(StyleHint hint,
const QStyleOption* option = 0,
const QWidget* widget = 0, QStyleHintReturn* returnData = 0)
const;
62 Q_PROPERTY(
bool desktopManagerEnabled READ desktopManagerEnabled)
75 Fm::LibFmQt& libFm() {
80 void launchFiles(QString cwd, QStringList paths,
bool inNewWindow);
81 void setWallpaper(QString path, QString modeString);
82 void preferences(QString page);
83 void desktopPrefrences(QString page);
85 void desktopManager(
bool enabled);
86 void findFiles(QStringList paths = QStringList());
87 void connectToServer();
88 void setWallpaperPathInfo(QString path);
89 void setWallpaperautochangeTime(QString interval);
90 void initWallpaperAutoChange();
91 void setAutoChangeWallpaper(QString path, QString modeString);
93 bool desktopManagerEnabled() {
94 return enableDesktopManager_;
97 void updateFromSettings();
98 void updateDesktopsFromSettings(
bool changeSlide =
true);
100 void openFolderInTerminal(Fm::FilePath path);
101 void openFolders(Fm::FileInfoList files);
103 QString profileName() {
108 void onAboutToQuit();
109 void onSigtermNotified();
111 void onLastWindowClosed();
112 void onSaveStateRequest(QSessionManager& manager);
113 void initVolumeManager();
115 void onVirtualGeometryChanged(
const QRect& rect);
116 void onAvailableGeometryChanged(
const QRect& rect);
117 void onScreenDestroyed(QObject* screenObj);
118 void onScreenAdded(QScreen* newScreen);
119 void onScreenRemoved(QScreen* oldScreen);
120 void reloadDesktopsAsNeeded();
122 void onFindFileAccepted();
123 void onConnectToServerAccepted();
127 bool parseCommandLineArgs();
129 bool autoMountVolume(GVolume* volume,
bool interactive =
true);
131 static void onVolumeAdded(GVolumeMonitor* monitor, GVolume* volume,
Application* pThis);
134 void onUserDirsChanged();
135 void handleTimeoutwallpaper();
139 void installSigtermHandler();
140 void screenMonitor();
141 void loadConfiguration(KScreen::ConfigPtr config);
143 bool isPrimaryInstance;
146 QString profileName_;
148 bool enableDesktopManager_;
149 QVector<DesktopWindow*> desktopWindows_;
150 QPointer<PreferencesDialog> preferencesDialog_;
151 QPointer<DesktopPreferencesDialog> desktopPreferencesDialog_;
152 QPointer<Fm::EditBookmarksDialog> editBookmarksialog_;
153 QTranslator translator;
154 QTranslator qtTranslator;
155 GVolumeMonitor* volumeMonitor_;
157 QFileSystemWatcher* userDirsWatcher_;
158 QString userDirsFile_;
159 QString userDesktopFolder_;
161 QTimer *wallPaperSwitch_time_;
162 QList<QFileInfo> *fileInfo;
163 int currentWallpaper_;
171 #endif // NDEFILEMAN_APPLICATION_H Definition: application.h:52
Definition: desktopwindow.h:57
Definition: settings.h:170
Definition: application.h:60
Definition: application.cpp:67