javamanager/javasettings_qt/src/javaapplicationsettingsview.h
author hgs
Thu, 05 Aug 2010 16:07:57 +0300
changeset 57 59b3b4473dc8
parent 50 023eef975703
child 72 1f0034e370aa
permissions -rw-r--r--
v2.2.9_1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
     1
/*
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
     3
* All rights reserved.
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
     8
*
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
     9
* Initial Contributors:
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    11
*
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    12
* Contributors:
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    13
*
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    14
* Description:
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    15
*
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    16
*/
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    17
#ifndef JAVAAPPLICATIONSETTINGSVIEW_H
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    18
#define JAVAAPPLICATIONSETTINGSVIEW_H
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    19
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    20
#include "applicationsettingsview.h"
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    21
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    22
namespace java
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    23
{
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    24
namespace settings
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    25
{
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    26
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    27
/**
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    28
 * Realization of the p-impl pattern: settings view consists of a public part (
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    29
 * implementing the ApplicationSettingsView interface) and the private part
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    30
 * (containing the private details). The public part simply maintains a pointer
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    31
 * to the private part thus enabling further changes into the private part without
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    32
 * any risk of breaking the public part
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    33
 */
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    34
class JavaApplicationSettingsViewPrivate;
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    35
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    36
class JavaApplicationSettingsView: public ApplicationSettingsView
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    37
{
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    38
    Q_OBJECT
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    39
    Q_INTERFACES(ApplicationSettingsView)
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    40
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    41
public:
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    42
    explicit JavaApplicationSettingsView();
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    43
    virtual ~JavaApplicationSettingsView();
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    44
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    45
public slots:
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    46
    void initialize(const QString&);
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    47
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    48
signals:
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    49
    void aboutToClose();
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    50
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    51
private:
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    52
    Q_DISABLE_COPY(JavaApplicationSettingsView)
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    53
    Q_DECLARE_PRIVATE_D(d_ptr, JavaApplicationSettingsView)
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    54
    Q_PRIVATE_SLOT(d_func(), void _q_settingsChanged(const QString & aNewValue))
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    55
    Q_PRIVATE_SLOT(d_func(), void _q_settingsChanged(bool aNewValue))
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    56
    Q_PRIVATE_SLOT(d_func(), void _q_dataItemDisplayed(const QModelIndex aDataItemIndex))
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    57
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    58
private:
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    59
    // the pointer to the private counterpart
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    60
    JavaApplicationSettingsViewPrivate * d_ptr;
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    61
};
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    62
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    63
} // namespace settings
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    64
} // namespace java
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    65
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    66
023eef975703 v2.2.4_1
hgs
parents:
diff changeset
    67
#endif // JAVAAPPLICATIONSETTINGSVIEW_H