Overte C++ Documentation
FileClip.h
1 //
2 // Created by Bradley Austin Davis 2015/11/05
3 // Copyright 2015 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 
9 #pragma once
10 #ifndef hifi_Recording_Impl_FileClip_h
11 #define hifi_Recording_Impl_FileClip_h
12 
13 #include "PointerClip.h"
14 
15 #include <QtCore/QFile>
16 
17 namespace recording {
18 
19 class FileClip : public PointerClip {
20 public:
21  using Pointer = std::shared_ptr<FileClip>;
22 
23  FileClip(const QString& file);
24  virtual ~FileClip();
25 
26  virtual QString getName() const override;
27 
28  static bool write(const QString& filePath, Clip::Pointer clip);
29 
30 private:
31  QFile _file;
32 };
33 
34 }
35 
36 #endif