00001 /*************************************************************************** 00002 * * 00003 * urlevent.h * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * Read the file COPYING for details. * 00011 * * 00012 * copyright: (C) 2003 by Jan Mueller * 00013 * email: janmueller7@hotmail.com * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef UrlEvent_h 00018 #define UrlEvent_h 00019 #include <qevent.h> 00020 #include "liturl.h" 00021 00022 class UrlEvent : public QCustomEvent { 00023 private: 00024 LitUrl u; 00025 bool nw; 00026 UrlEvent(const UrlEvent&); 00027 00028 public: 00029 UrlEvent(LitUrl url, bool newwin):QCustomEvent(User), u(url), nw(newwin) { 00030 } 00031 UrlEvent(UrlEvent& e): QCustomEvent(User), u(e.url()), nw(e.nw) { } 00032 virtual ~UrlEvent() { } 00033 00034 LitUrl url() { return u; } 00035 bool newWin() { return nw; }; 00036 void setNewWin(bool newwin) { nw=newwin; } 00037 void setUrl(LitUrl url) { u=url; } 00038 }; 00039 00040 00041 #endif