1/* 2 * Copyright 1999-2009 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Jeremy Friesner 7 */ 8#ifndef _COMMAND_EXECUTOR_H 9#define _COMMAND_EXECUTOR_H 10 11 12#include <Looper.h> 13#include <Message.h> 14#include <OS.h> 15 16 17// This thread receives BMessages telling it what 18// to launch, and launches them. 19 20class CommandExecutor : public BLooper { 21public: 22 CommandExecutor(); 23 virtual ~CommandExecutor(); 24 25 virtual void MessageReceived(BMessage* message); 26 27private: 28 bool GetNextWord(char** setBeginWord, 29 char** setEndWord) const; 30}; 31 32 33#endif // _COMMAND_EXECUTOR_H 34