151852Sbp/*
251852Sbp * Copyright 1999-2009 Haiku Inc. All rights reserved.
351852Sbp * Distributed under the terms of the MIT License.
451852Sbp *
551852Sbp * Authors:
651852Sbp *		Jeremy Friesner
751852Sbp */
851852Sbp
951852Sbp
1051852Sbp#ifndef CommandExecutor_h
1151852Sbp#define CommandExecutor_h
1251852Sbp
1351852Sbp#include <Looper.h>
1451852Sbp#include <Message.h>
1551852Sbp#include <OS.h>
1651852Sbp
1751852Sbp// This thread receives BMessages telling it what
1851852Sbp// to launch, and launches them.
19116189Sobrienclass CommandExecutor : public BLooper {
20116189Sobrienpublic:
2151852Sbp							CommandExecutor();
22116189Sobrien							~CommandExecutor();
23116189Sobrien
24116189Sobrien	virtual	void			MessageReceived(BMessage* msg);
25116189Sobrien
2651852Sbpprivate:
2751852Sbp			bool			GetNextWord(char** setBeginWord, char** setEndWord)
2851852Sbp								const;
2951852Sbp};
3051852Sbp
3151852Sbp#endif
3251852Sbp