00001 /******************************************************************************** 00002 * * 00003 * Miscellaneous network support * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 2003 by Niall Douglas. All Rights Reserved. * 00007 * NOTE THAT I DO NOT PERMIT ANY OF MY CODE TO BE PROMOTED TO THE GPL * 00008 ********************************************************************************* 00009 * This code is free software; you can redistribute it and/or modify it under * 00010 * the terms of the GNU Library General Public License v2.1 as published by the * 00011 * Free Software Foundation EXCEPT that clause 3 does not apply ie; you may not * 00012 * "upgrade" this code to the GPL without my prior written permission. * 00013 * Please consult the file "License_Addendum2.txt" accompanying this file. * 00014 * * 00015 * This code is distributed in the hope that it will be useful, * 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * 00018 ********************************************************************************* 00019 * $Id: * 00020 ********************************************************************************/ 00021 00022 #ifndef FXNETWORK_H 00023 #define FXNETWORK_H 00024 #include "QHostAddress.h" 00025 00026 namespace FX { 00027 00032 class FXString; 00033 00041 class FXAPIR FXNetwork 00042 { 00043 FXNetwork(); 00044 FXNetwork(const FXNetwork &); 00045 FXNetwork &operator=(const FXNetwork &); 00046 public: 00048 static bool hasIPv6(); 00050 static FXString hostname(); 00057 static QHostAddress dnsLookup(const FXString &name); 00064 static FXString dnsReverseLookup(const QHostAddress &addr); 00065 }; 00066 00067 } // namespace 00068 00069 #endif