1/* 2 * Copyright 2016, Rene Gollent, rene@gollent.com. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef CONNECTION_CONFIG_HANDLER_H 6#define CONNECTION_CONFIG_HANDLER_H 7 8#include <String.h> 9#include <SupportDefs.h> 10 11#include "ConnectionConfigView.h" 12 13 14class TargetHostInterfaceInfo; 15 16 17class ConnectionConfigHandler { 18public: 19 ConnectionConfigHandler(const char* name); 20 virtual ~ConnectionConfigHandler(); 21 22 const BString& Name() const { return fName; } 23 24 virtual status_t CreateView(TargetHostInterfaceInfo* info, 25 ConnectionConfigView::Listener* listener, 26 ConnectionConfigView*& _view) = 0; 27private: 28 BString fName; 29}; 30 31 32#endif // CONNECTION_CONFIG_HANDLER_H 33