File indexing completed on 2024-04-28 04:55:40
0001 /* 0002 This file is part of Choqok, the KDE micro-blogging client 0003 0004 SPDX-FileCopyrightText: 2008-2012 Mehrdad Momeny <mehrdad.momeny@gmail.com> 0005 0006 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0007 */ 0008 0009 #include "editaccountwidget.h" 0010 0011 class ChoqokEditAccountWidgetPrivate 0012 { 0013 public: 0014 Choqok::Account *account; 0015 }; 0016 0017 ChoqokEditAccountWidget::ChoqokEditAccountWidget(Choqok::Account *account, QWidget *parent) 0018 : QWidget(parent), d(new ChoqokEditAccountWidgetPrivate) 0019 { 0020 d->account = account; 0021 } 0022 0023 ChoqokEditAccountWidget::~ChoqokEditAccountWidget() 0024 { 0025 delete d; 0026 } 0027 0028 Choqok::Account *ChoqokEditAccountWidget::account() const 0029 { 0030 return d->account; 0031 } 0032 0033 bool ChoqokEditAccountWidget::validateData() 0034 { 0035 return true; 0036 } 0037 0038 void ChoqokEditAccountWidget::setAccount(Choqok::Account *account) 0039 { 0040 delete d->account; 0041 d->account = account; 0042 } 0043 0044 #include "moc_editaccountwidget.cpp"