58 void play(int row); |
56 void play(int row); |
59 void updateDescription(); |
57 void updateDescription(); |
60 void clearTemp(); |
58 void clearTemp(); |
61 void clearThumbnail(); |
59 void clearThumbnail(); |
62 void setProgress(int row, VideoItem* item, float value); |
60 void setProgress(int row, VideoItem* item, float value); |
63 VideoItem * itemFromReply(QNetworkReply* reply, int & row); |
|
64 |
61 |
65 GameUIConfig * config; |
62 GameUIConfig * config; |
66 QNetworkAccessManager* netManager; |
|
67 |
63 |
68 // file list group |
64 // file list group |
69 QTableWidget *filesTable; |
65 QTableWidget *filesTable; |
70 QPushButton *btnOpenDir; |
66 QPushButton *btnOpenDir; |
71 |
67 |
72 // description group |
68 // description group |
73 QPushButton *btnPlay, *btnDelete, *btnToYouTube; |
69 QPushButton *btnPlay, *btnDelete; |
74 QLabel *labelDesc; |
70 QLabel *labelDesc; |
75 QLabel *labelThumbnail; |
71 QLabel *labelThumbnail; |
76 |
72 |
77 // this flag is used to distinguish if cell was changed from code or by user |
73 // this flag is used to distinguish if cell was changed from code or by user |
78 // (in signal cellChanged) |
74 // (in signal cellChanged) |
79 bool nameChangedFromCode; |
75 bool nameChangedFromCode; |
80 |
76 |
81 int numRecorders, numUploads; |
77 int numRecorders; |
82 |
78 |
83 private slots: |
79 private slots: |
84 void encodingFinished(bool success); |
80 void encodingFinished(bool success); |
85 void updateProgress(float value); |
81 void updateProgress(float value); |
86 void cellDoubleClicked(int row, int column); |
82 void cellDoubleClicked(int row, int column); |
88 void currentCellChanged(); |
84 void currentCellChanged(); |
89 void playSelectedFile(); |
85 void playSelectedFile(); |
90 void deleteSelectedFiles(); |
86 void deleteSelectedFiles(); |
91 void openVideosDirectory(); |
87 void openVideosDirectory(); |
92 void updateFileList(const QString & path); |
88 void updateFileList(const QString & path); |
93 void uploadToYouTube(); |
|
94 void uploadProgress(qint64 bytesSent, qint64 bytesTotal); |
|
95 void uploadFinished(); |
|
96 }; |
89 }; |
97 |
90 |
98 #endif // PAGE_VIDEOS_H |
91 #endif // PAGE_VIDEOS_H |