--- a/QTfrontend/ui/page/pagevideos.h Thu Jul 26 21:56:47 2012 +0400
+++ b/QTfrontend/ui/page/pagevideos.h Thu Jul 26 21:58:25 2012 +0400
@@ -20,9 +20,9 @@
#ifndef PAGE_VIDEOS_H
#define PAGE_VIDEOS_H
-#include <QPixmap>
#include "AbstractPage.h"
+class QNetworkAccessManager;
class GameUIConfig;
class HWRecorder;
class VideoItem;
@@ -41,7 +41,6 @@
QCheckBox *checkUseGameRes;
QCheckBox *checkRecordAudio;
-
QString format()
{ return comboAVFormats->itemData(comboAVFormats->currentIndex()).toString(); }
@@ -76,8 +75,10 @@
void updateDescription();
void clearTemp();
void clearThumbnail();
+ void setProgress(int row, VideoItem* item, float value);
GameUIConfig * config;
+ QNetworkAccessManager* netManager;
// options group
QComboBox *comboAVFormats;
@@ -90,7 +91,7 @@
QPushButton *btnOpenDir;
// description group
- QPushButton *btnPlay, *btnDelete;
+ QPushButton *btnPlay, *btnDelete, *btnToYouTube;
QLabel *labelDesc;
QLabel *labelThumbnail;
@@ -98,7 +99,7 @@
// (in signal cellChanged)
bool nameChangedFromCode;
- int numRecorders;
+ int numRecorders, numUploads;
private slots:
void changeAVFormat(int index);
@@ -114,6 +115,9 @@
void deleteSelectedFiles();
void openVideosDirectory();
void updateFileList(const QString & path);
+ void uploadToYouTube();
+ void uploadProgress(qint64 bytesSent, qint64 bytesTotal);
+ void uploadFinished();
};
#endif // PAGE_VIDEOS_H