X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zlint%2Fzlint.h;h=0ac1717e97cc8853bd459987325488aa4b83eb87;hb=e432b52c33a684e9f90627b971d14da6b362daff;hp=49d7b8435d38597ddde811f0e0c227735f5e494d;hpb=86726b00b052694e65b036c262f5fe9096554175;p=yazpp-moved-to-github.git diff --git a/zlint/zlint.h b/zlint/zlint.h index 49d7b84..0ac1717 100644 --- a/zlint/zlint.h +++ b/zlint/zlint.h @@ -1,11 +1,11 @@ /* - * Copyright (c) 2004, Index Data. + * Copyright (c) 2004-2005, Index Data. * See the file LICENSE for details. * - * $Id: zlint.h,v 1.2 2005-06-02 06:40:21 adam Exp $ + * $Id: zlint.h,v 1.7 2006-03-29 13:14:20 adam Exp $ */ -#include +#include using namespace yazpp_1; @@ -18,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); @@ -37,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; @@ -52,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 { @@ -152,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 + */ +