~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebKit/qt/Api/qwebhistory_p.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "BackForwardList.h"
24
24
#include "HistoryItem.h"
25
 
 
26
 
class QWebHistoryItemPrivate : public QSharedData
27
 
{
 
25
#include <QtCore/qglobal.h>
 
26
#include <QtCore/qshareddata.h>
 
27
 
 
28
class QWebPagePrivate;
 
29
 
 
30
class Q_AUTOTEST_EXPORT QWebHistoryItemPrivate : public QSharedData {
28
31
public:
29
 
    QWebHistoryItemPrivate(WebCore::HistoryItem *i)
 
32
    static QExplicitlySharedDataPointer<QWebHistoryItemPrivate> get(QWebHistoryItem* q)
 
33
    {
 
34
        return q->d;
 
35
    }
 
36
    QWebHistoryItemPrivate(WebCore::HistoryItem* i)
30
37
    {
31
38
        if (i)
32
39
            i->ref();
37
44
        if (item)
38
45
            item->deref();
39
46
    }
40
 
    WebCore::HistoryItem *item;
 
47
 
 
48
    WebCore::HistoryItem* item;
41
49
};
42
50
 
43
 
class QWebHistoryPrivate : public QSharedData
44
 
{
 
51
class QWebHistoryPrivate : public QSharedData {
45
52
public:
46
 
    QWebHistoryPrivate(WebCore::BackForwardList *l)
 
53
    QWebHistoryPrivate(WebCore::BackForwardList* l)
47
54
    {
48
55
        l->ref();
49
56
        lst = l;
52
59
    {
53
60
        lst->deref();
54
61
    }
55
 
    WebCore::BackForwardList *lst;
 
62
 
 
63
    QWebPagePrivate* page();
 
64
 
 
65
    WebCore::BackForwardList* lst;
56
66
};
57
67
 
58
68