author | paule <paule> | 2007-02-07 10:14:11 (UTC) |
---|---|---|
committer | paule <paule> | 2007-02-07 10:14:11 (UTC) |
commit | d7a838e0f4352522fb2c12feea58129b16e76b89 (patch) (side-by-side diff) | |
tree | 54a293a13b7bcf1d51869857c4350abcf3af06b1 /noncore/tools/remote/lirchandler.h | |
parent | 97b2152a21890f05a2217dddfcba6c820c00aa24 (diff) | |
download | opie-d7a838e0f4352522fb2c12feea58129b16e76b89.zip opie-d7a838e0f4352522fb2c12feea58129b16e76b89.tar.gz opie-d7a838e0f4352522fb2c12feea58129b16e76b89.tar.bz2 |
Add functions for handling /etc/lircd.conf; do basic check of /etc/lircd.conf before attempting to commit in order to avoid timeouts
Diffstat (limited to 'noncore/tools/remote/lirchandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/remote/lirchandler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/tools/remote/lirchandler.h b/noncore/tools/remote/lirchandler.h index 4e56b6b..5ba14b7 100644 --- a/noncore/tools/remote/lirchandler.h +++ b/noncore/tools/remote/lirchandler.h @@ -9,35 +9,43 @@ version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef LIRCHANDLER_H #define LIRCHANDLER_H #include <sys/un.h> +#include <qfile.h> class LircHandler { private: bool connectLirc(void); const char *readPacket(); + bool readFromFile(QFile &file, QStringList &strlist); + bool writeToFile(QFile &file, QStringList &strlist); struct sockaddr_un addr; int fd; public: LircHandler(void); QStringList getRemotes(void); QStringList getButtons(const char *remoteName); int sendIR(const char *lircaction); bool startLircd(void); bool stopLircd(void); bool isLircdRunning(void); + void reloadLircdConf(void); bool setupModules(void); bool cleanupModules(void); void disableIrDA(void); + void mergeRemoteConfig(const QString &newconfig); + void removeRemote(const QString &remotetodelete); + bool checkRemoteExists(const QString &remote); + bool checkLircdConfValid(bool silent); }; #endif |