File indexing completed on 2024-04-28 11:20:44

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003     SPDX-FileCopyrightText: 2009 Alexander Rieder <alexanderrieder@gmail.com>
0004 */
0005 
0006 #ifndef _ANIMATIONRESULT_H
0007 #define _ANIMATIONRESULT_H
0008 
0009 #include "result.h"
0010 
0011 namespace Cantor
0012 {
0013 class AnimationResultPrivate;
0014 
0015 class CANTOR_EXPORT AnimationResult : public Result
0016 {
0017   public:
0018     enum{Type=6};
0019     explicit AnimationResult( const QUrl& url, const QString& alt=QString() );
0020     ~AnimationResult() override;
0021 
0022     QString toHtml() override;
0023     QVariant data() override;
0024     QUrl url() override;
0025 
0026     int type() override;
0027     QString mimeType() override;
0028 
0029     QDomElement toXml(QDomDocument& doc) override;
0030     QJsonValue toJupyterJson() override;
0031     void saveAdditionalData(KZip* archive) override;
0032 
0033     void save(const QString& filename) override;
0034   private:
0035     AnimationResultPrivate* d;
0036 
0037 };
0038 
0039 }
0040 
0041 #endif /* _ANIMATIONRESULT_H */