| # kio Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kproxybindings.h

    00001 /*
    00002  *  $Id: kproxybindings.h,v 1.3.4.1 2003/05/17 11:19:24 mueller Exp $
    00003  *  KJS-Bindings for Proxy Auto Configuration
    00004  *
    00005  *  Copyright (C) 2000 Malte Starostik <malte@kde.org>
    00006  *
    00007  *  This library is free software; you can redistribute it and/or
    00008  *  modify it under the terms of the GNU Library General Public
    00009  *  License as published by the Free Software Foundation; either
    00010  *  version 2 of the License, or (at your option) any later version.
    00011  *
    00012  *  This library is distributed in the hope that it will be useful,
    00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00015  *  Library General Public License for more details.
    00016  *
    00017  *  You should have received a copy of the GNU Library General Public License
    00018  *  along with this library; see the file COPYING.LIB.  If not, write to
    00019  *  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00020  *  Boston, MA 02111-1307, USA.
    00021  */
    00022
    00023 #ifndef _KPROXYBINDINGS_H_
    00024 #define _KPROXYBINDINGS_H_
    00025
    00026 #include <kjs/object.h>
    00027
    00028 struct tm;
    00029
    00030 namespace KJS
    00031 {
    00032     class KProxyFunc : public ObjectImp
    00033     {
    00034     public:
    00035         enum { IsPlainHostName, DNSDomainIs, LocalHostOrDomainIs,
    00036                IsResolvable, IsInNet,
    00037                DNSResolve, MyIPAddress, DNSDomainLevels,
    00038                ShExpMatch,
    00039                WeekdayRange, DateRange, TimeRange };
    00040         KProxyFunc(int id);
    00041         virtual bool implementsCall() const;
    00042         virtual Value call(ExecState *exec, Object &thisObj,
    00043                            const List &args);
    00048         static void init(ExecState *exec, Object &global);
    00049     protected:
    00053         const UString dnsResolve(const UString &) const;
    00059         const struct tm *getTime(ExecState *exec, const List &args) const;
    00065         int findString(const QString &str, const char **list) const;
    00071         bool checkRange(int value, int min, int max) const;
    00072     private:
    00073         int m_id;
    00074     };
    00075 }
    00076
    00077 #endif
    00078

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:14:13 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001