X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zlint%2Fzlint.h;h=0ac1717e97cc8853bd459987325488aa4b83eb87;hb=e432b52c33a684e9f90627b971d14da6b362daff;hp=694e0e57818f2a9b2bec6b8744fc76c25c9f39fb;hpb=40213edfa0408f88b008c3d1ee4a4f90dcdf2fb9;p=yazpp-moved-to-github.git diff --git a/zlint/zlint.h b/zlint/zlint.h index 694e0e5..0ac1717 100644 --- a/zlint/zlint.h +++ b/zlint/zlint.h @@ -1,11 +1,13 @@ /* - * Copyright (c) 2004, Index Data. + * Copyright (c) 2004-2005, Index Data. * See the file LICENSE for details. * - * $Id: zlint.h,v 1.1 2004-03-25 23:14:07 adam Exp $ + * $Id: zlint.h,v 1.7 2006-03-29 13:14:20 adam Exp $ */ -#include +#include + +using namespace yazpp_1; enum Zlint_code { TEST_FINISHED, @@ -16,9 +18,9 @@ enum Zlint_code { class Zlint_test; class Zlint_t; -class Zlint : public Yaz_Z_Assoc { +class Zlint : public Z_Assoc { public: - Zlint(IYaz_PDU_Observable *the_PDU_Observable); + Zlint(IPDU_Observable *the_PDU_Observable); ~Zlint(); void add_test(Zlint_test *i); void set_host(const char *cp); @@ -35,9 +37,8 @@ private: void timeoutNotify(); void failNotify(); void recv_GDU(Z_GDU *apdu, int len); - IYaz_PDU_Observable *m_PDU_Observable; - IYaz_PDU_Observer *sessionNotify( - IYaz_PDU_Observable *the_PDU_Observable, int fd); + IPDU_Observable *m_PDU_Observable; + IPDU_Observer *sessionNotify(IPDU_Observable *the_PDU_Observable, int fd); Zlint_t *m_tests; Zlint_t *m_cur_test; char *m_host; @@ -50,6 +51,7 @@ public: virtual Zlint_code init(Zlint *z) = 0; virtual Zlint_code recv_gdu(Zlint *z, Z_GDU *gdu) = 0; virtual Zlint_code recv_fail(Zlint *z, int reason) = 0; + virtual ~Zlint_test(); }; class Zlint_test_simple : public Zlint_test { @@ -150,3 +152,11 @@ public: Zlint_code recv_gdu(Zlint *z, Z_GDU *gdu); Zlint_code recv_fail(Zlint *z, int reason); }; +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +