GCC Code Coverage Report


Directory: ./
File: playlist/PlaylistEntryScript.h
Date: 2026-10-29 08:11:58
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #pragma once
2 /*
3 * This file is part of the Falcon Player (FPP) and is Copyright (C)
4 * 2013-2022 by the Falcon Player Developers.
5 *
6 * The Falcon Player (FPP) is free software, and is covered under
7 * multiple Open Source licenses. Please see the included 'LICENSES'
8 * file for descriptions of what files are covered by each license.
9 *
10 * This source file is covered under the LGPL v2.1 as described in the
11 * included LICENSE.LGPL file.
12 */
13
14 #include <string>
15 #include "fpp-json-fwd.h"
16
17 #include "PlaylistEntryBase.h"
18
19 class PlaylistEntryScript : public PlaylistEntryBase {
20 public:
21 PlaylistEntryScript(Playlist* playlist, PlaylistEntryBase* parent = NULL);
22 ~PlaylistEntryScript();
23
24 virtual int Init(Json::Value& config) override;
25
26 virtual int StartPlaying(void) override;
27 virtual int Process(void) override;
28 virtual int Stop(void) override;
29
30 bool isChildRunning();
31 virtual void Dump(void) override;
32
33 virtual Json::Value GetConfig(void) override;
34 virtual Json::Value GetMqttStatus(void) override;
35 2 std::string GetScriptName(void) { return m_scriptFilename; }
36
37 virtual uint64_t GetElapsedMS() override;
38
39 private:
40 std::string m_scriptFilename;
41 std::string m_scriptArgs;
42 bool m_blocking;
43 int m_scriptProcess;
44 long long m_startTime;
45 };
46