kproxybindings.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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.