[vlmc-devel] commit: AbstractSharingService.h: Move and rename VideoData struct to AbstractVideoData. (Rohit Yadav )

git at videolan.org git at videolan.org
Wed Sep 22 17:55:27 CEST 2010


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Wed Sep 22 21:40:11 2010 +0530| [930393357e7aeaacb0585db9890a94bbfdea648f] | committer: Rohit Yadav 

AbstractSharingService.h: Move and rename VideoData struct to AbstractVideoData.
AbstractVideoData will serve as an abstract video data structure to be used by future
services.

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

 src/Services/AbstractSharingService.h |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/Services/AbstractSharingService.h b/src/Services/AbstractSharingService.h
index a9a661d..8492d73 100644
--- a/src/Services/AbstractSharingService.h
+++ b/src/Services/AbstractSharingService.h
@@ -25,7 +25,15 @@
 
 #include <QObject>
 
-class VideoData;
+/* Abstract Video Data structure for pass video meta data */
+struct AbstractVideoData
+{
+    QString title;
+    QString category;
+    QString description;
+    QString keywords;
+    bool    isPrivate;
+};
 
 class AbstractSharingService : public QObject
 {
@@ -35,11 +43,11 @@ class AbstractSharingService : public QObject
         virtual void    authenticate() = 0;        // Authenticate the service
         virtual bool    upload() = 0;              // Upload video
 
-        virtual const   VideoData& getVideoData() = 0;
+        virtual const   AbstractVideoData& getVideoData() = 0;
 
         virtual void    setCredentials( const QString&, const QString& ) = 0;
         virtual void    setDeveloperKey( const QString& ) = 0;
-        virtual void    setVideoParameters( const QString&, const VideoData& ) = 0;
+        virtual void    setVideoParameters( const QString&, const AbstractVideoData& ) = 0;
 
     signals:
         void            authOver();



More information about the Vlmc-devel mailing list