"Fossies" - the Fresh Open Source Software Archive

Member "poppler-0.82.0/qt5/src/poppler-media.h" (25 Oct 2019, 2388 Bytes) of package /linux/misc/poppler-0.82.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "poppler-media.h" see the Fossies "Dox" file reference documentation.

    1 /* poppler-media.h: qt interface to poppler
    2  * Copyright (C) 2012 Guillermo A. Amaral B. <gamaral@kde.org>
    3  * Copyright (C) 2012, 2013 Albert Astals Cid <aacid@kde.org>
    4  *
    5  * This program is free software; you can redistribute it and/or modify
    6  * it under the terms of the GNU General Public License as published by
    7  * the Free Software Foundation; either version 2, or (at your option)
    8  * any later version.
    9  *
   10  * This program is distributed in the hope that it will be useful,
   11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  * GNU General Public License for more details.
   14  *
   15  * You should have received a copy of the GNU General Public License
   16  * along with this program; if not, write to the Free Software
   17  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
   18  */
   19 
   20 #ifndef __POPPLER_MEDIARENDITION_H__
   21 #define __POPPLER_MEDIARENDITION_H__
   22 
   23 #include "poppler-export.h"
   24 
   25 #include <QtCore/QSize>
   26 #include <QtCore/QString>
   27 
   28 class MediaRendition;
   29 class QIODevice;
   30 
   31 namespace Poppler
   32 {
   33   class MediaRenditionPrivate;
   34 
   35   /**
   36     Qt wrapper for MediaRendition.
   37 
   38     \since 0.20
   39    */
   40   class POPPLER_QT5_EXPORT MediaRendition {
   41    public:
   42     /**
   43       Constructs a MediaRendition. Takes ownership of the passed rendition
   44      */
   45     MediaRendition(::MediaRendition *rendition);
   46     ~MediaRendition();
   47 
   48     /**
   49       Check if wrapper is holding a valid rendition object.
   50      */
   51     bool isValid() const;
   52 
   53     /**
   54       Returns content type.
   55      */
   56     QString contentType() const;
   57 
   58     /**
   59       Returns file name.
   60      */
   61     QString fileName() const;
   62 
   63     /**
   64       Returns true if media is embedded.
   65      */
   66     bool isEmbedded() const;
   67 
   68     /**
   69       Returns data buffer.
   70      */
   71     QByteArray data() const;
   72 
   73     /**
   74       Convenience accessor for auto-play parameter.
   75      */
   76     bool autoPlay() const;
   77 
   78     /**
   79       Convenience accessor for show controls parameter.
   80      */
   81     bool showControls() const;
   82 
   83     /**
   84       Convenience accessor for repeat count parameter.
   85      */
   86     float repeatCount() const;
   87 
   88     /**
   89       Convenience accessor for size parameter.
   90      */
   91     QSize size() const;
   92 
   93    private:
   94     Q_DECLARE_PRIVATE( MediaRendition )
   95     MediaRenditionPrivate *d_ptr;
   96     Q_DISABLE_COPY( MediaRendition )
   97   };
   98 }
   99 
  100 #endif /* __POPPLER_MEDIARENDITION_H__ */