37 #include <QStringList>
39 #ifdef COMPILE_KDE_SUPPORT
43 #ifdef COMPILE_ON_WINDOWS
47 #else // !COMPILE_ON_WINDOWS
50 #endif // !COMPILE_ON_WINDOWS
52 #ifndef COMPILE_NO_IPC
54 #endif // !COMPILE_NO_IPC
151 #ifdef COMPILE_KDE_SUPPORT
152 KAboutData * m_pAboutData;
160 #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
168 #ifdef COMPILE_PSEUDO_TRANSPARENCY
169 bool m_bUpdatePseudoTransparencyPending;
171 #ifndef COMPILE_NO_IPC
179 #ifdef COMPILE_KDE_SUPPORT
180 void setAboutData(KAboutData * pAboutData)
182 m_pAboutData = pAboutData;
184 KAboutData * aboutData() {
return m_pAboutData; };
187 #ifndef COMPILE_NO_IPC
188 void ipcMessage(
char * message);
191 static int getGloballyUniqueId();
197 bool supportsCompositing();
208 void saveIrcServerDataBase();
209 void saveProxyDataBase();
210 void saveRecentEntries();
213 void saveMediaTypes();
214 void saveRegisteredUsers();
215 void saveSharedFiles();
219 void saveIdentityProfiles();
220 void saveDefaultScripts();
221 void saveTextIcons();
222 void saveRegisteredChannels();
223 void saveInputHistory();
224 void saveAvatarCache();
228 void saveIdentities();
234 void listAvailableOptions(
KviWindow * wnd);
235 bool getOptionString(
const QString & optName, QString & buffer);
236 bool setOptionValue(
const QString & optName,
const QString & value);
237 bool setCommonOptionValue(
const QString & optName,
const QString & value);
239 void optionResetUpdate(
int flags);
242 void getGlobalKvircDirectory(QString & szData, KvircSubdir dir,
const QString & appendFile = QString());
243 void getLocalKvircDirectory(QString & szData, KvircSubdir dir,
const QString & appendFile = QString(),
bool bCreateIfNeeded =
true);
245 void getTmpFileName(QString &
szBuffer,
const QString & szEndingFileName = QString());
246 void getChannelDumpLogFileName(QString & str);
248 static QTextCodec * defaultTextCodec();
249 static QTextCodec * defaultSrvCodec();
251 bool findImageInImageSearchPath(QString & szRetPath,
const QString & filename);
253 bool findImage(QString & szRetPath,
const QString & filename);
254 bool findImageThemeOnlyCompat(QString & szRetPath,
const QString & filename);
255 bool findSmallIcon(QString & szRetPath,
const QString & filename);
259 bool mapImageFile(QString & szRetPath,
const QString & filename);
272 bool getReadOnlyConfigPath(QString & buffer,
const char * config_name, KvircSubdir sbd = Config,
bool bNoFail =
false);
283 bool findAudioFile(QString & szRetPath,
const QString & szFileName);
286 KviWindow * findWindow(
const QString & windowId);
287 KviWindow * findWindowByCaption(
const QString & windowCaption,
int iContextId = -1);
294 unsigned int windowCount();
298 void restartNotifyLists();
299 void restartLagMeters();
300 void triggerUpdateGui();
301 #ifdef COMPILE_PSEUDO_TRANSPARENCY
302 void triggerUpdatePseudoTransparency();
306 void setAvatarOnFileReceived(
KviConsoleWindow * pConsole,
const QString & szRemoteUrl,
const QString & szNick,
const QString & szUser,
const QString &
szHost);
308 void fileDownloadTerminated(
bool bSuccess,
const QString & szRemoteUrl,
const QString & szLocalFileName,
const QString & szNick = QString(),
const QString & szError = QString(),
bool bQuiet =
false);
310 void setAvatarFromOptions();
313 void notifierMessage(
KviWindow * pWnd,
int iIconId,
const QString & szMsg,
unsigned int uMessageLifetime);
315 void addRecentNickname(
const QString & newNick);
316 void addRecentChannel(
const QString & chan,
const QString & net);
318 QStringList * recentChannelsForNetwork(
const QString & net);
322 return m_pRecentChannelDict;
325 void addRecentServer(
const QString & server);
326 void fillRecentServersPopup(QMenu *
m);
330 void autoConnectToServers();
332 void checkSuggestRestoreDefaultScript();
334 void loadDefaultScript(QString szItem = QString());
335 QStyle * themedStyle();
338 void buildRecentChannels();
339 void saveRecentChannels();
343 void frameDestructorCallback();
345 virtual void timerEvent(QTimerEvent *
e);
349 void loadDirectories();
350 void findGlobalKvircDirectory();
351 bool findLocalKvircDirectory();
352 bool checkGlobalKvircDirectory(
const QString);
353 bool checkLocalKvircDirectory(
const QString & szSpecificPath);
354 bool checkLocalKvircDirectory();
355 bool checkFileAssociations();
356 void setupFileAssociations();
358 bool checkUriAssociations(
const char * proto);
359 void setupUriAssociations(
const char * proto);
361 void saveKvircDirectory();
364 void updateApplicationFont();
367 void loadRecentEntries();
368 #ifndef COMPILE_NO_IPC
369 void createIpcSentinel();
370 void destroyIpcSentinel();
371 #endif // COMPILE_NO_IPC
374 #ifdef COMPILE_PSEUDO_TRANSPARENCY
375 void createGlobalBackgrounds(QPixmap * pix);
376 void destroyPseudoTransparency();
377 #endif //COMPILE_PSEUDO_TRANSPARENCY
382 void updatePseudoTransparency();
383 void restoreDefaultScript();
384 void addRecentUrl(
const QString & text);
385 void showParentFrame();
388 void updateNotifier();
389 void recentUrlsChanged();
392 #ifndef _KVI_APP_CPP_
KviIpcSentinel * m_pIpcSentinel
Definition: KviApplication.h:172
void saveAliases(const QString &szFileName)
Definition: KviKvs.cpp:82
Definition: KviApplication.h:124
Definition: KviMainWindow.h:60
Definition: KviConsoleWindow.h:75
#define KVIRC_API
Definition: kvi_settings.h:128
void saveAppEvents(const QString &szFileName)
Definition: KviKvs.cpp:97
Definition: KviApplication.h:136
Definition: KviApplication.h:121
bool firstTimeRun() const
Definition: KviApplication.h:193
#define m
Definition: detector.cpp:77
KviPointerList< KviPendingAvatarChange > * m_pPendingAvatarChanges
Definition: KviApplication.h:165
int m_iHeartbeatTimerId
Definition: KviApplication.h:157
bool m_bSetupDone
Definition: KviApplication.h:166
An abstraction of a connection to an IRC server.
Definition: KviIrcConnection.h:95
Definition: KviApplication.h:90
Definition: KviConfigurationFile.h:48
bool kviClosingDown() const
Definition: KviApplication.h:194
bool m_bFirstTimeRun
Definition: KviApplication.h:158
Definition: KviApplication.h:68
Definition: KviApplication.h:130
Definition: KviApplication.h:114
QString szMessage
Definition: KviApplication.h:86
KviPointerHashTable< QString, QStringList > * recentChannels() const
Definition: KviApplication.h:320
struct _KviNotifierMessageParam KviNotifierMessageParam
KviConsoleWindow * pConsole
Definition: KviApplication.h:70
KviWindow * m_pActiveWindow
Definition: KviApplication.h:163
Definition: KviApplication.h:120
Definition: KviRegisteredUser.h:35
Definition: KviApplication.h:132
virtual void saveConfiguration()=0
Saves configuration to disk.
void setKviClosingDown()
Definition: KviApplication.h:195
Definition: KviApplication.h:116
Definition: KviApplication.h:125
QString m_szExecAfterStartup
Definition: KviApplication.h:148
#define kvi_time_t
Definition: KviTimeUtils.h:43
KVIRC_API KviIrcServerDataBase * g_pServerDataBase
Definition: KviApplication.cpp:154
#define e
Definition: detector.cpp:69
QString m_szConfigFile
Definition: KviApplication.h:146
Definition: KviApplication.h:127
QString szRemoteUrl
Definition: KviApplication.h:71
QString szNick
Definition: KviApplication.h:72
Defines a struct which holds information about the notifier message.
Definition: KviApplication.h:82
defined(COMPILE_KDE4_SUPPORT)
Definition: KviTalApplication.h:53
QString szUser
Definition: KviApplication.h:73
struct _KviPendingAvatarChange KviPendingAvatarChange
Definition: KviApplication.h:112
void savePopups(const QString &szFileName)
Definition: KviKvs.cpp:67
KviPointerHashTable< QString, QStringList > * m_pRecentChannelDict
Definition: KviApplication.h:167
QString szHost
Definition: libkvisetup.cpp:45
bool m_bUpdateGuiPending
Definition: KviApplication.h:164
QString m_szLocalKvircDir
Definition: KviApplication.h:156
Definition: KviApplication.h:119
Definition: KviApplication.h:115
Definition: KviApplication.h:113
Definition: KviApplication.h:131
Definition: SetupWizard.h:62
void saveScriptAddons(const QString &szFileName)
Definition: KviKvs.cpp:127
Definition: KviApplication.h:135
C++ Template based double linked pointer list class.
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
A template double linked list of pointers.
Definition: KviPointerList.h:55
Definition: KviApplication.h:122
QString szHost
Definition: KviApplication.h:74
Definition: KviApplication.h:102
Definition: KviApplication.h:123
Toolkit Abstraction Level class.
QFont m_fntDefaultFont
Definition: KviApplication.h:174
KVIRC_API KviApplication * g_pApp
Definition: KviApplication.cpp:151
Definition: KviIpcSentinel.h:50
QString szIcon
Definition: KviApplication.h:85
Contains the KviWindow class.
#define u
Definition: detector.cpp:85
Definition: KviApplication.h:117
QStringList lMessages
Definition: KviApplication.h:92
Definition: KviApplication.h:133
bool m_bClosingDown
Definition: KviApplication.h:159
char szBuffer[4096]
Definition: winamp.cpp:77
Definition: KviApplication.h:129
QString m_szGlobalKvircDir
Definition: KviApplication.h:155
Definition: KviApplication.h:128
Definition: KviApplication.h:126
void saveRawEvents(const QString &szFileName)
Definition: KviKvs.cpp:112
This file contains compile time settings.
Definition: KviApplication.h:137
Definition: KviApplication.h:118
Irc server database handling class.
Definition: KviIrcServerDataBase.h:63
bool m_bCreateConfig
Definition: KviApplication.h:147
struct _KviDBusNotifierMessageQueue KviDBusNotifierMessageQueue
unsigned int uMessageLifetime
Definition: KviApplication.h:87
Definition: KviApplication.h:134
Helper functions for the QString class.
KviWindow * pWindow
Definition: KviApplication.h:84
KvircSubdir
Definition: KviApplication.h:110