CommonAttributesElements.h 2.37 KB
Newer Older
1 2 3 4 5 6
/*****************************************************************************
 * CommonAttributesElements.h: Defines the common attributes and elements
 *                             for some Dash elements.
 *****************************************************************************
 * Copyright © 2011 VideoLAN
 *
7
 * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
8 9 10 11 12 13 14 15
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 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
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 18 19 20 21 22 23 24 25 26
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser 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 COMMONATTRIBUTESELEMENTS_H
#define COMMONATTRIBUTESELEMENTS_H

27
#include <list>
28 29
#include <string>

30
namespace adaptive
31
{
32
    namespace playlist
33 34 35 36
    {
        class CommonAttributesElements
        {
            public:
37
                CommonAttributesElements();
38
                virtual ~CommonAttributesElements();
39
                virtual const std::string&      getMimeType() const;
40 41 42 43 44 45 46
                void                            setMimeType( const std::string &mimeType );
                int                             getWidth() const;
                void                            setWidth( int width );
                int                             getHeight() const;
                void                            setHeight( int height );
                const std::list<std::string>&   getLang() const;
                void                            addLang( const std::string &lang );
47 48

            protected:
49 50 51 52
                std::string                         mimeType;
                int                                 width;
                int                                 height;
                std::list<std::string>              lang;
53 54 55 56 57
        };
    }
}

#endif // COMMONATTRIBUTESELEMENTS_H