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

« back to all changes in this revision

Viewing changes to mailcommon/aclentrydialog_p.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
/*
 
2
 * Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
 
3
 * Copyright (c) 2010 Tobias Koenig <tokoe@kdab.com>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
18
 */
 
19
 
 
20
#ifndef MAILCOMMON_ACLENTRYDIALOG_P_H
 
21
#define MAILCOMMON_ACLENTRYDIALOG_P_H
 
22
 
 
23
#include <kdialog.h>
 
24
#include <kimap/acl.h>
 
25
 
 
26
namespace MailCommon {
 
27
 
 
28
/**
 
29
 * @short A dialog for editing an IMAP ACL entry.
 
30
 */
 
31
class AclEntryDialog : public KDialog
 
32
{
 
33
  Q_OBJECT
 
34
 
 
35
  public:
 
36
    /**
 
37
     * Creates a new ACL entry dialog.
 
38
     *
 
39
     * @param parent The parent widget.
 
40
     */
 
41
    AclEntryDialog( QWidget *parent = 0 );
 
42
 
 
43
    /**
 
44
     * Destroys the ACL entry dialog.
 
45
     */
 
46
    ~AclEntryDialog();
 
47
 
 
48
    /**
 
49
     * Sets the user @p id of the ACL entry.
 
50
     */
 
51
    void setUserId( const QString &id );
 
52
 
 
53
    /**
 
54
     * Returns the user id of the ACL entry.
 
55
     */
 
56
    QString userId() const;
 
57
 
 
58
    /**
 
59
     * Sets the permissions of the ACL entry.
 
60
     */
 
61
    void setPermissions( KIMAP::Acl::Rights permissions );
 
62
 
 
63
    /**
 
64
     * Returns the permissions of the ACL entry.
 
65
     */
 
66
    KIMAP::Acl::Rights permissions() const;
 
67
 
 
68
  private:
 
69
    //@cond PRIVATE
 
70
    class Private;
 
71
    Private* const d;
 
72
 
 
73
    Q_PRIVATE_SLOT( d, void slotSelectAddresses() )
 
74
    Q_PRIVATE_SLOT( d, void slotChanged() )
 
75
    //@endcond
 
76
};
 
77
 
 
78
}
 
79
 
 
80
#endif