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

private
slots:
	void on_uploadBtn_clicked();

	void on_deleteBtn_clicked();

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