Back to index

im-sdk  12.3.91
IMAccept.hh
Go to the documentation of this file.
00001 #ifndef IMACCEPT_HH_
00002 #define IMACCEPT_HH_
00003 #include <string>
00004 #include <list>
00005 #include "basictype.hh"
00006 
00007 typedef list<u16string> IMAuthList;
00008 
00009 class IMHandler;
00010 class IMAccept
00011 {
00012   public:
00013     virtual bool request_accept(
00014        int fd
00015     ) = 0;
00016     virtual IMHandler* request_connect(
00017        int fd,
00018        const u16string &username,
00019        const string &hostname,
00020        const u16string &password,
00021        const IMAuthList &authlist
00022     ) = 0;
00023 };
00024 
00025 #endif /* not IMACCEPT_HH_ */
00026 
00027 /* Local Variables: */
00028 /* c-file-style: "iiim-project" */
00029 /* End: */