summaryrefslogtreecommitdiff
path: root/src/rekonq_defines.h
blob: 088478bdf48568ef43ddbbcc3e07f4569110e85c (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
55
56
57
58
59
60
61
62
63
64
/* ============================================================
 *     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

// ------------------------------------------------------------
// UNIT TESTS NEED
#ifdef REKONQ_TEST
#define REKONQ_TEST_VIRTUAL virtual
#define REKONQ_TEST_PURE = 0
#else
#define REKONQ_TEST_VIRTUAL
#define REKONQ_TEST_PURE
#endif

// ------------------------------------------------------------
// 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