link.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2005 Ariya Hidayat <ariya@kde.org> 00003 (C) 2003 Norbert Andres <nandres@web.de> 00004 (C) 2002 Philipp Mueller <philipp.mueller@gmx.de> 00005 (C) 1999-2002 Laurent Montel <montel@kde.org> 00006 (C) 1999 Stephan Kulow <coolo@kde.org> 00007 (C) 1998-1999 Torben Weis <weis@kde.org> 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU Library General Public 00011 License as published by the Free Software Foundation; either 00012 version 2 of the License, or (at your option) any later version. 00013 00014 This library is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 Library General Public License for more details. 00018 00019 You should have received a copy of the GNU Library General Public License 00020 along with this library; see the file COPYING.LIB. If not, write to 00021 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00022 Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef LINK_DIALOG 00026 #define LINK_DIALOG 00027 00028 #include <kdialogbase.h> 00029 00030 class LinkDialogPrivate; 00031 00032 class LinkDialog : public KDialogBase 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 LinkDialog( QWidget* parent, const char* name = 0 ); 00038 ~LinkDialog(); 00039 QString text() const; 00040 QString link() const; 00041 00042 public slots: 00043 void setText( const QString& text ); 00044 void setLink( const QString& link ); 00045 00046 protected slots: 00047 void slotOk(); 00048 00049 private: 00050 LinkDialogPrivate* d; 00051 }; 00052 00053 #endif /* LINK_DIALOG */