2012-01-21 23:19:38 +01:00
|
|
|
#ifndef QZ_NAMESPACE_H
|
|
|
|
#define QZ_NAMESPACE_H
|
|
|
|
|
|
|
|
#include <QFlags>
|
|
|
|
|
|
|
|
namespace Qz
|
|
|
|
{
|
|
|
|
|
|
|
|
enum AppMessageType {
|
|
|
|
AM_SetAdBlockIconEnabled,
|
|
|
|
AM_CheckPrivateBrowsing,
|
|
|
|
AM_ReloadSettings,
|
|
|
|
AM_HistoryStateChanged,
|
|
|
|
AM_BookmarksChanged,
|
|
|
|
AM_StartPrivateBrowsing
|
|
|
|
};
|
|
|
|
|
|
|
|
enum BrowserWindow {
|
|
|
|
BW_FirstAppWindow,
|
|
|
|
BW_OtherRestoredWindow,
|
|
|
|
BW_NewWindow
|
|
|
|
};
|
|
|
|
|
|
|
|
enum CommandLineAction {
|
|
|
|
CL_NoAction,
|
|
|
|
CL_OpenUrl,
|
|
|
|
CL_StartWithProfile,
|
|
|
|
CL_StartWithoutAddons,
|
|
|
|
CL_NewTab,
|
|
|
|
CL_NewWindow,
|
|
|
|
CL_ShowDownloadManager,
|
|
|
|
CL_StartPrivateBrowsing,
|
|
|
|
CL_ExitAction
|
|
|
|
};
|
|
|
|
|
|
|
|
enum NewTabPositionFlag {
|
|
|
|
NT_SelectedTab = 1,
|
|
|
|
NT_NotSelectedTab = 2,
|
|
|
|
NT_CleanTab = 4,
|
2012-01-26 20:19:56 +01:00
|
|
|
NT_TabAtTheEnd = 8,
|
2012-01-21 23:19:38 +01:00
|
|
|
|
2012-01-26 20:19:56 +01:00
|
|
|
NT_SelectedTabAtTheEnd = NT_SelectedTab | NT_TabAtTheEnd,
|
|
|
|
NT_NotSelectedTabAtTheEnd = NT_NotSelectedTab | NT_TabAtTheEnd,
|
2012-01-21 23:19:38 +01:00
|
|
|
NT_CleanSelectedTab = NT_CleanTab | NT_SelectedTab,
|
|
|
|
NT_CleanNotSelectedTab = NT_CleanTab | NT_NotSelectedTab
|
|
|
|
};
|
|
|
|
|
|
|
|
Q_DECLARE_FLAGS(NewTabPositionFlags, NewTabPositionFlag)
|
|
|
|
Q_DECLARE_OPERATORS_FOR_FLAGS(Qz::NewTabPositionFlags)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // QZ_NAMESPACE_H
|