~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to blogilo/src/composer/dialogs/addeditlink.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    This file is part of Blogilo, A KDE Blogging Client
3
3
 
4
 
    Copyright (C) 2008-2009 Mehrdad Momeny <mehrdad.momeny@gmail.com>
5
 
    Copyright (C) 2008-2009 Golnaz Nilieh <g382nilieh@gmail.com>
 
4
    Copyright (C) 2008-2010 Mehrdad Momeny <mehrdad.momeny@gmail.com>
 
5
    Copyright (C) 2008-2010 Golnaz Nilieh <g382nilieh@gmail.com>
6
6
 
7
7
    This program is free software; you can redistribute it and/or
8
8
    modify it under the terms of the GNU General Public License as
27
27
 
28
28
#include <kdialog.h>
29
29
 
30
 
#include "ui_addeditlinkbase.h"
 
30
struct Link{
 
31
public:
 
32
    QString address;
 
33
    QString title;
 
34
    QString target;
 
35
};
31
36
 
32
37
/**
33
38
Implements a dialog to get user input for link parameters; address, name and target.
40
45
{
41
46
    Q_OBJECT
42
47
public:
43
 
    AddEditLink( QWidget *parent = 0 );
 
48
    explicit AddEditLink( const QString& address = QString(), const QString& title = QString(),
 
49
                          const QString& target = QString(), QWidget *parent = 0 );
 
50
    explicit AddEditLink(QWidget* parent = 0);
44
51
    ~AddEditLink();
45
 
    void show( const QString& address = QString(), const QString& title = QString(),
46
 
               const QString& target = QString() );
47
52
 
48
 
Q_SIGNALS:
49
 
    void addLink( const QString& address, const QString& target, const QString& title );
 
53
    Link &result() const;
50
54
 
51
55
private Q_SLOTS:
52
56
    virtual void slotButtonClicked(int button);
53
57
    void slotClearLinkCache();
54
58
 
55
59
private:
56
 
    KConfigGroup *confGroup;
57
 
    Ui::AddEditLinkBase ui;
 
60
    void initUi();
 
61
 
 
62
    class Private;
 
63
    Private * const d;
58
64
};
59
65
 
60
66
#endif