File: GtkAuthenticationDialog.h

package info (click to toggle)
qtwebkit 2.3.4.dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 290,116 kB
  • ctags: 272,544
  • sloc: cpp: 1,417,496; python: 85,048; ansic: 39,353; perl: 38,858; ruby: 10,313; objc: 9,505; xml: 8,679; asm: 3,864; yacc: 2,458; sh: 1,237; lex: 813; makefile: 592; java: 228; php: 79
file content (60 lines) | stat: -rw-r--r-- 1,922 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * Copyright (C) 2009, 2011 Igalia S.L.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

#ifndef GtkAuthenticationDialog_h
#define GtkAuthenticationDialog_h

#include "AuthenticationChallenge.h"
#include "GRefPtrGtk.h"
#include <libsoup/soup.h>
#include <wtf/FastAllocBase.h>
#include <wtf/Noncopyable.h>
#include <wtf/text/CString.h>

namespace WebCore {

class GtkAuthenticationDialog {
    WTF_MAKE_NONCOPYABLE(GtkAuthenticationDialog);
    WTF_MAKE_FAST_ALLOCATED;

public:
    GtkAuthenticationDialog(const AuthenticationChallenge&);
    GtkAuthenticationDialog(GtkWindow*, const AuthenticationChallenge&);
    virtual ~GtkAuthenticationDialog() { }
    void show();
    void destroy();

protected:
    void createContentsInContainer(GtkWidget* container);
    virtual void authenticate(const Credential&);
    GtkWidget* m_dialog;
    GtkWidget* m_loginEntry;
    GtkWidget* m_passwordEntry;
    GtkWidget* m_rememberCheckButton;
    GtkWidget* m_okayButton;
    GtkWidget* m_cancelButton;

private:
    static void buttonClickedCallback(GtkWidget*, GtkAuthenticationDialog*);
    AuthenticationChallenge m_challenge;
};

} // namespace WebCore

#endif // GtkAuthenticationDialog_h