1/* 2 * Copyright 2008, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Axel Dörfler, axeld@pinc-software.de 7 */ 8#ifndef AUTOCONFIG_CLIENT_H 9#define AUTOCONFIG_CLIENT_H 10 11 12#include <Handler.h> 13#include <Messenger.h> 14#include <String.h> 15 16 17class AutoconfigClient : public BHandler { 18public: 19 AutoconfigClient(const char* name, 20 BMessenger target, const char* device); 21 virtual ~AutoconfigClient(); 22 23 virtual status_t Initialize(); 24 25 const BMessenger& Target() const { return fTarget; } 26 const char* Device() const { return fDevice.String(); } 27 28private: 29 BMessenger fTarget; 30 BString fDevice; 31}; 32 33#endif // AUTOCONFIG_CLIENT_H 34