00001 // Copyright (c) 2003 - 2004 Anselm R. Garbe <anselmg at t-online.de> 00002 // See ../LICENSE.txt for license details. 00003 // 00004 // $Id: prompt.h 7 2007-05-24 11:03:53Z eg1981 $ 00005 00006 #ifndef __PROMPT_H 00007 #define __PROMPT_H 00008 00009 #include <set> 00010 #include <string> 00011 #include "ncwm.h" 00012 00013 class Binder; 00014 00015 typedef set<string> Sstring; 00016 typedef string (Binder::*QueryNamesForPrefix) 00017 (string prefix, Sstring *nameSet); 00018 00023 class Prompt { 00024 00025 public: 00026 00027 Prompt(string prompt, QueryNamesForPrefix toQuery); 00028 00029 string prompt() const; 00030 00031 QueryNamesForPrefix toQuery() const; 00032 00033 private: 00034 00035 string prompt_; 00036 QueryNamesForPrefix toQuery_; 00037 }; 00038 00039 #endif // __PROMPT_H