This file is indexed.

/usr/include/KF5/pimcommon/storageservicesettingswidget.h is in libkf5pimcommon-dev 4:16.04.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
  Copyright (c) 2013-2016 Montel Laurent <montel@kde.org>

  This program is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License, version 2, as
  published by the Free Software Foundation.

  This program 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
  General Public License for more details.

  You should have received a copy of the GNU General Public License along
  with this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

#ifndef STORAGESERVICESETTINGSWIDGET_H
#define STORAGESERVICESETTINGSWIDGET_H

#include <QWidget>
#include <QMap>
#include "pimcommon_export.h"
#include "pimcommon/storageserviceabstract.h"
#include "pimcommon/storageservicemanager.h"
class QListWidget;
class QPushButton;
class QLabel;
class QTextBrowser;
class QStackedWidget;
class QListWidgetItem;
namespace PimCommon
{
class StorageListWidgetItem;

class PIMCOMMON_EXPORT StorageServiceSettingsWidget : public QWidget
{
    Q_OBJECT
public:
    explicit StorageServiceSettingsWidget(QWidget *parent = Q_NULLPTR);
    ~StorageServiceSettingsWidget();

    void setListService(const QMap<QString, PimCommon::StorageServiceAbstract *> &lst, const QList<StorageServiceAbstract::Capability> &lstCap = QList<PimCommon::StorageServiceAbstract::Capability>() << PimCommon::StorageServiceAbstract::AccountInfoCapability);
    QMap<QString, PimCommon::StorageServiceAbstract *> listService() const;

Q_SIGNALS:
    void changed();
    void serviceRemoved(const QString &serviceName);

private Q_SLOTS:
    void slotServiceSelected();

    void slotAddService();
    void slotRemoveService();
    void slotUpdateAccountInfo(const QString &serviceName, const PimCommon::AccountInfo &info);
    void slotModifyService();
    void slotAuthenticationFailed(const QString &serviceName, const QString &error);
    void slotAuthenticationDone(const QString &serviceName);
    void slotUpdateAccountInfoFailed(const QString &serviceName, const QString &error);
    void slotAuthenticate();
    void slotAuthenticationCancelled(const QString &serviceName);
    void slotServiceDoubleClicked(QListWidgetItem *item);
private:
    void updateButtons();
    void setDefaultLabel();
    PimCommon::StorageListWidgetItem *createItem(const QString &serviceName, const QString &service, PimCommon::StorageServiceManager::ServiceType type, const QIcon &icon);
    void defaultConnection(StorageServiceAbstract *storage);
    void modifyItem(QListWidgetItem *item);
    enum ServiceData {
        Name = Qt::UserRole + 1,
        Type = Qt::UserRole + 2
    };
    QList<PimCommon::StorageServiceAbstract::Capability> mNeedCapability;
    QMap<QString, PimCommon::StorageServiceAbstract *> mListStorageService;
    QListWidget *mListService;
    QTextBrowser *mDescription;
    QPushButton *mAddService;
    QPushButton *mRemoveService;
    QPushButton *mModifyService;
    QLabel *mAccountSize;
    QLabel *mQuota;
    QLabel *mShared;
    QStackedWidget *mStackWidget;
    QWidget *mInformationPage;
    QWidget *mErrorPage;
    QPushButton *mAuthenticate;
    QLabel *mErrorInfo;
    QLabel *mCanNotGetInfo;
};
}
#endif // STORAGESERVICESETTINGSWIDGET_H