summaryrefslogtreecommitdiff
path: root/src/rekonq_defines.h
blob: 01294aba1754a7285b45169930cd8db16c87aa98 (plain)
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
/* ============================================================
 *     The rekonq project
 * ============================================================
 * SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (C) 2007 David Faure <faure@kde.org>
 * Copyright (C) 2009-2012 by Andrea Diamantini <adjam7 at gmail dot com>
 * SPDX-License-Identifier: GPL-3.0-only
 * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
 * ============================================================
 * Description: rekonq bookmarks system interface
 * ============================================================ */

#pragma once

// ------------------------------------------------------------
// Defines

#define QL1S(x)  QLatin1String(x)
#define QL1C(x)  QLatin1Char(x)

// ------------------------------------------------------------
// Enums

namespace rekonq {

enum DefaultUrl { NewTabPage, HomePage, AboutBlank };

/**
* @short Open link options
* Different modes of opening new tab
*/
enum OpenType
{
    CurrentTab,         ///< open url in current tab
    NewTab,             ///< open url according to users settings
    NewFocusedTab,      ///< open url in new tab and focus it
    NewBackGroundTab,   ///< open url in new background tab
    NewWindow,          ///< open url in new window
    NewPrivateWindow,   ///< open url in new private window
    WebApp              ///< open url in a web app window
};

/**
* @short data to be synced
* Different data we can sync
*/
enum SyncData
{
    Bookmarks,
    History,
    Passwords
};

} // namespace rekonq