1 #ifndef __XBMCHELPER_H__
2 #define __XBMCHELPER_H__
5 * Copyright (C) 2005-2013 Team XBMC
8 * This Program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
13 * This Program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with XBMC; see the file COPYING. If not, see
20 * <http://www.gnu.org/licenses/>.
29 static XBMCHelper& GetInstance();
38 bool IsAlwaysOn() const { return m_alwaysOn; }
39 int GetMode() const { return m_mode; }
41 bool ErrorStarting() { return m_errorStarting; }
45 XBMCHelper(XBMCHelper const& );
46 XBMCHelper& operator=(XBMCHelper const&);
51 bool IsRemoteBuddyInstalled();
52 bool IsSofaControlRunning();
54 int GetProcessPid(const char* processName);
56 std::string ReadFile(const char* fileName);
57 void WriteFile(const char* fileName, const std::string& data);
65 std::string m_configFile;
66 std::string m_launchAgentLocalFile;
67 std::string m_launchAgentInstallFile;
68 std::string m_homepath;
69 std::string m_helperFile;
71 static XBMCHelper* smp_instance;