29 lines
928 B
C++
29 lines
928 B
C++
/*
|
|
* ThermalAction.cpp
|
|
*
|
|
* Copyright (C) 2016 Spreadtrum Communications Inc.
|
|
*/
|
|
#include "ThermalAction.h"
|
|
#include "alog.h"
|
|
|
|
#undef LOG_TAG
|
|
#define LOG_TAG "ThermalAction: "
|
|
|
|
namespace android {
|
|
|
|
ThermalAction::ThermalAction() {}
|
|
ThermalAction::~ThermalAction() {}
|
|
void ThermalAction::setEnable(bool en) { enable = en; };
|
|
bool ThermalAction::getEnable() { return enable; }
|
|
void ThermalAction::setName(const char* name) { mDevice = name; }
|
|
const char* ThermalAction::getName() { return mDevice.c_str(); }
|
|
void ThermalAction::setArg(const char* arg) { mArg = arg; }
|
|
const char* ThermalAction::getArg() { return mArg.c_str(); }
|
|
const char* ThermalAction::getFile() { return mFileNode.c_str(); }
|
|
void ThermalAction::setFile(const char* file) { mFileNode = file; }
|
|
void ThermalAction::doAction() {
|
|
ALOGI("do,===>%s, mArg:%s, mFileNode:%s", mDevice.c_str(), mArg.c_str(),
|
|
mFileNode.c_str());
|
|
}
|
|
}; // namespace android
|