<commit_before>/*
 * Contact Chooser Dialog
 *
 * Copyright (C) 2011 <NAME> <<EMAIL>>
 * Copyright (C) 2012 <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */


#ifndef CONTACT_GRID_DIALOG_H
#define CONTACT_GRID_DIALOG_H

#include <KDialog>
#include <TelepathyQt/Types>
#include <TelepathyQt/AccountManager>
#include <TelepathyQt/Account>
#include <TelepathyQt/Contact>

namespace Tp {
class PendingOperation;
}

class AccountsModel;
class QTcpSocket;

class AccountsFilterModel;
namespace KTp {
class ContactGridWidget;

class ContactGridDialog : public KDialog
{
    Q_OBJECT
    Q_DISABLE_COPY(ContactGridDialog)

public:
    ContactGridDialog(QWidget *parent);
    virtual ~ContactGridDialog();

    virtual AccountsFilterModel* filter() const;

    virtual Tp::AccountPtr account();
    virtual Tp::ContactPtr contact();

private:
    class Private;
    Private * const d;

    Q_PRIVATE_SLOT(d, void _k_onAccountManagerReady());
    Q_PRIVATE_SLOT(d, void _k_onOkClicked());
    Q_PRIVATE_SLOT(d, void _k_onChanged());
};

} // namespace KTp

#endif // CONTACT_GRID_DIALOG_H
<commit_msg>Export class in the library<commit_after>/*
 * Contact Chooser Dialog
 *
 * Copyright (C) 2011 <NAME> <<EMAIL>>
 * Copyright (C) 2012 <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */


#ifndef CONTACT_GRID_DIALOG_H
#define CONTACT_GRID_DIALOG_H

#include <KDialog>
#include <TelepathyQt/Types>
#include <TelepathyQt/AccountManager>
#include <TelepathyQt/Account>
#include <TelepathyQt/Contact>
#include <KTp/ktp-export.h>

namespace Tp {
class PendingOperation;
}

class AccountsModel;
class QTcpSocket;

class AccountsFilterModel;
namespace KTp {
class ContactGridWidget;

class KTP_EXPORT ContactGridDialog : public KDialog
{
    Q_OBJECT
    Q_DISABLE_COPY(ContactGridDialog)

public:
    ContactGridDialog(QWidget *parent);
    virtual ~ContactGridDialog();

    virtual AccountsFilterModel* filter() const;

    virtual Tp::AccountPtr account();
    virtual Tp::ContactPtr contact();

private:
    class Private;
    Private * const d;

    Q_PRIVATE_SLOT(d, void _k_onAccountManagerReady());
    Q_PRIVATE_SLOT(d, void _k_onOkClicked());
    Q_PRIVATE_SLOT(d, void _k_onChanged());
};

} // namespace KTp

#endif // CONTACT_GRID_DIALOG_H

{'fraction_non_alphanumeric': 0.08253621207980323, 'fraction_numerical': 0.01147854605083356, 'mean_word_length': 4.487256371814093, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '105543', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1088, 'n_words': 403}