Files
2026-09-22 09:38:26 +08:00

38 lines
706 B
C++

/*
* ThermalAction.h
*
* Copyright (C) 2016 Spreadtrum Communications Inc.
*/
#ifndef THERMALACTION_H_
#define THERMALACTION_H_
#undef LOG_TAG
#define LOG_TAG "ThermalAction"
#include <string>
namespace android {
class ThermalAction {
protected:
std::string mDevice;
std::string mArg;
std::string mFileNode;
bool enable = true;
public:
ThermalAction();
virtual ~ThermalAction();
void setEnable(bool en);
bool getEnable();
void setName(const char* name);
const char* getName();
void setArg(const char* arg);
const char* getArg();
void setFile(const char* file);
const char* getFile();
virtual void doAction();
};
}; // namespace android
#endif // THERMALACTION_H_