[vlmc-devel] commit: Abstract Service class for sharing videos on the internet. Currently only for YouTube. (Rohit Yadav )

git at videolan.org git at videolan.org
Tue Aug 24 11:11:18 CEST 2010


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Mon Aug 23 22:12:36 2010 +0530| [49f10c2aa520ec6aa4612ec6341a864ac5b65a1f] | committer: Hugo Beauzée-Luyssen 

Abstract Service class for sharing videos on the internet. Currently only for YouTube.

Signed-off-by: Hugo Beauzée-Luyssen <beauze.h at gmail.com>

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=49f10c2aa520ec6aa4612ec6341a864ac5b65a1f
---

 src/Services/AbstractSharingService.h |   51 +++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/src/Services/AbstractSharingService.h b/src/Services/AbstractSharingService.h
new file mode 100644
index 0000000..a9a661d
--- /dev/null
+++ b/src/Services/AbstractSharingService.h
@@ -0,0 +1,51 @@
+/******************************************************************************
+ * AbstractSharingService.h: Abstract Video Sharing Service Class
+ ******************************************************************************
+ * Copyright (C) 2010 VideoLAN
+ *
+ * Authors: Rohit Yadav <rohityadav89 AT gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+#ifndef ABSTRACTSHARINGSERVICE_H
+#define ABSTRACTSHARINGSERVICE_H
+
+#include <QObject>
+
+class VideoData;
+
+class AbstractSharingService : public QObject
+{
+    Q_OBJECT
+
+    public:
+        virtual void    authenticate() = 0;        // Authenticate the service
+        virtual bool    upload() = 0;              // Upload video
+
+        virtual const   VideoData& getVideoData() = 0;
+
+        virtual void    setCredentials( const QString&, const QString& ) = 0;
+        virtual void    setDeveloperKey( const QString& ) = 0;
+        virtual void    setVideoParameters( const QString&, const VideoData& ) = 0;
+
+    signals:
+        void            authOver();
+        void            uploadOver( QString );
+        void            uploadProgress( qint64, qint64 );
+        void            error( QString );
+};
+
+#endif // ABSTRACTSHARINGSERVICE_H



More information about the Vlmc-devel mailing list