/* ============================================================ * The rekonq project * ============================================================ * SPDX-License-Identifier: GPL-2.0-or-later * Copyright (C) 2007 David Faure * Copyright (C) 2009-2012 by Andrea Diamantini * SPDX-License-Identifier: GPL-3.0-only * Copyright (C) 2022 aqua * ============================================================ * 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) #ifndef ASSERT_NOT_REACHED # ifndef QT_NO_DEBUG # define ASSERT_NOT_REACHED(msg) qt_assert(#msg,__FILE__,__LINE__); kDebug() << #msg # else # define ASSERT_NOT_REACHED(msg) kDebug() << #msg # endif #endif //ASSERT_NOT_REACHED // -------------------------------------------------------------------------------------- // Enums namespace rekonq { /** * @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 // ----------------------------------------------------------------------------------------------------