summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/ScreenshotDialog.h
blob: 29dd67655bca34edaafaab496c1bf0c9855bdbe5 (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
#pragma once

#include <QDialog>
#include "logic/screenshots/ScreenshotList.h"

class ImgurAlbumCreation;

namespace Ui
{
class ScreenshotDialog;
}

class ScreenshotDialog : public QDialog
{
	Q_OBJECT

public:
	explicit ScreenshotDialog(ScreenshotList *list, QWidget *parent = 0);
	~ScreenshotDialog();

	enum
	{
		NothingDone = 0x42
	};

	QString message() const;
	QList<ScreenshotPtr> selected() const;

private
slots:
	void on_uploadBtn_clicked();

	void on_deleteBtn_clicked();

private:
	Ui::ScreenshotDialog *ui;
	ScreenshotList *m_list;
	QList<ScreenshotPtr> m_uploaded;
	std::shared_ptr<ImgurAlbumCreation> m_imgurAlbum;
};