summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/ScreenshotDialog.h
blob: ac95b4f05b48aed35cdf81471cd0b55b933cfcfd (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/lists/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<std::shared_ptr<ScreenShot>> selected() const;

private
slots:
	void on_uploadBtn_clicked();

	void on_deleteBtn_clicked();

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