Marble

ConflictDialog.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Utku Aydın <utkuaydin34@gmail.com>
4//
5
6#ifndef CONFLICTDIALOG_H
7#define CONFLICTDIALOG_H
8
9#include "marble_export.h"
10
11#include <QDialog>
12
14class QAbstractButton;
15
16namespace Marble
17{
18
19class MergeItem;
20
21class MARBLE_EXPORT ConflictDialog : public QDialog
22{
23 Q_OBJECT
24
25public:
26 enum Button {
27 Local = 1,
28 Cloud,
29 AllLocal,
30 AllCloud
31 };
32
33 enum ResolveAction {
34 AskUser,
35 PreferLocal,
36 PreferCloud
37 };
38
39 explicit ConflictDialog(QWidget *parent = nullptr);
40 void setMergeItem(MergeItem *item);
41
42public Q_SLOTS:
43 void open() override;
44 void stopAutoResolve();
45
46Q_SIGNALS:
47 void resolveConflict(MergeItem *mergeItem);
48
49private Q_SLOTS:
50 void resolveConflict(QAbstractButton *button);
51
52private:
53 void prepareLayout();
54
55 MergeItem *m_mergeItem = nullptr;
56 QDialogButtonBox *m_box = nullptr;
57 ConflictDialog::ResolveAction m_resolveAction;
58};
59
60}
61
62#endif // CONFLICTDIALOG_H
KGuiItem open()
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.