Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 695076c42814f30bd4890de1d9334b65bbb7e7d5
  • master par défaut protégée
  • rust-playlist-sync
  • rust
  • fix-qt-deprecated-qvariant-type
  • fix-mpris-qtwindow-race-condition
  • rust-appimage-wayland
  • windows-build-rebased
  • v2.5 protégée
  • v2.4 protégée
  • v2.3-1 protégée
  • v2.3 protégée
  • v2.2 protégée
  • v2.1 protégée
  • v2.0 protégée
  • v1.8-3 protégée
  • v1.8-2 protégée
  • v1.8-1 protégée
  • v1.8 protégée
  • v1.7 protégée
  • v1.6 protégée
  • v1.5 protégée
  • v1.4 protégée
  • v1.3 protégée
  • v1.2 protégée
  • v1.1 protégée
  • v1.0 protégée
27 résultats

module_repo.c

Blame
    • Kubat's avatar
      695076c4
      MISC: Override some functions to have a better life. · 695076c4
      Kubat a rédigé
      - database_config_get on the number of arguments. Don't touch to
        database_config_get_text_nospace.
        - 4 for database_config_get_int
        - 5 for database_config_get_text
      - lkt_uri_from on the type of the last argument
        - char ** for lkt_uri_from_list
        - char * for lkt_uri_from_single
      MISC: Override some functions to have a better life.
      Kubat a rédigé
      - database_config_get on the number of arguments. Don't touch to
        database_config_get_text_nospace.
        - 4 for database_config_get_int
        - 5 for database_config_get_text
      - lkt_uri_from on the type of the last argument
        - char ** for lkt_uri_from_list
        - char * for lkt_uri_from_single
    Line.hh 1,52 Kio
    #pragma once
    
    #include "PreCompiledHeaders.hh"
    #include "VivyApplication.hh"
    #include "Lib/Log.hh"
    #include "Lib/Ass/Syl.hh"
    #include "Lib/Ass/StyleProperties.hh"
    #include "Lib/Ass/Style.hh"
    
    namespace Vivy::Ass
    {
    class AssFactory;
    
    class Line final {
        VIVY_APP_LOGGABLE_OBJECT(Line, logger)
    
        quint64 start{ 0 };
        quint64 end{ 0 };
        int layer{ 0 };
        bool isComment{ true };
    
        QVector<Syl> content{};
        StyleProperties styleProperties{};
        QString effect{};
        QString nameOrActor{};
        StyleWeakPtr lineStyle;
    
        QString ___contentAsText;
    
        AssFactory *const assFactory;
    
    public:
        //explicit Line(const Line &) = default;
        explicit Line(AssFactory *const, const QString &);
        explicit Line();
        explicit Line(const Line &c)  = default;
        Line &operator=(const Line &) = delete;
    
        ~Line() noexcept = default;
    
        void setStart(quint64 s) noexcept;
        void setEnd(quint64 s) noexcept;
        quint64 getDuration() const noexcept;
        bool getIsComment() const noexcept;
    
        StyleProperties getStyleProperties() const noexcept;
        StyleWeakPtr getStyle() const noexcept;
        const QVector<Syl> &getContent() const noexcept;
        void setContent(const QVector<Syl> &) noexcept;
    
        QVector<Syl> *getContentPtr() noexcept; // FIXME: remove me
    
        quint64 getStart() const noexcept;
        quint64 getEnd() const noexcept;
        QString getContentAsText() const noexcept;
        QString getLineAsText() const noexcept;
    
    private:
        void initSylFromString(const QString &) noexcept;
        void updateContent() noexcept;
    };
    }