2
This file is part of choqoK, the KDE Twitter client
4
Copyright (C) 2008 Mehrdad Momeny <mehrdad.momeny@gmail.com>
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 3 of the License, or
9
(at your option) any later version.
2
This file is part of choqoK, the KDE mono-blogging client
4
Copyright (C) 2008-2009 Mehrdad Momeny <mehrdad.momeny@gmail.com>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License as
8
published by the Free Software Foundation; either version 2 of
9
the License or (at your option) version 3 or any later version
10
accepted by the membership of KDE e.V. (or its successor approved
11
by the membership of KDE e.V.), which shall act as a proxy
12
defined in Section 14 of version 3 of the license.
11
15
This program is distributed in the hope that it will be useful,
12
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
18
GNU General Public License for more details.
16
20
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
along with this program; if not, see http://www.gnu.org/licenses/
21
24
#ifndef QUICKTWIT_H
24
27
#include "datacontainers.h"
25
28
#include "ui_quicktwit_base.h"
26
29
#include <kdialog.h>
27
31
class StatusTextEdit;
30
34
Widget for Quik twitting
32
@author Mehrdad Momeny <mehrdad.momeny@gmail.com>
36
@author Mehrdad Momeny <mehrdad.momeny@gmail.com>
34
38
class QuickTwit : public KDialog
38
QuickTwit(QWidget* parent=0);
42
QuickTwit( QWidget* parent = 0 );
42
46
void showFocusedOnNewStatusField();
43
void checkNewStatusCharactersCount(int numOfChars);
44
void slotPostNewStatus(QString &newStatus);
45
void slotPostNewStatusDone(bool isError);
47
void addAccount(const Account &account);
48
void removeAccount(const QString &alias);
47
void checkNewStatusCharactersCount( int numOfChars );
48
void slotPostNewStatus( QString &newStatus );
49
void slotPostNewStatusDone( bool isError );
51
void addAccount( const Account &account );
52
void removeAccount( const QString &alias );
51
55
void loadAccounts();
54
// void sigStatusUpdated();
55
void sigNotify( const QString &title, const QString &message, const QString &iconUrl);
58
void sigStatusUpdated( bool isError );
59
void sigNotify( const QString &title, const QString &message, const QString &iconUrl );
58
void checkAll(bool isAll);
62
void checkAll( bool isAll );
60
64
Ui::quicktwit_base ui;
61
StatusTextEdit *txtStatus;
65
StatusTextEdit *txtStatus;
63
67
QList<Account> accountsList;