~ubuntu-branches/ubuntu/karmic/choqok/karmic

« back to all changes in this revision

Viewing changes to src/quicktwit.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Stalcup
  • Date: 2009-02-11 20:31:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090211203126-7uqucqt5r2harpds
Tags: 0.4-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
    This file is part of choqoK, the KDE Twitter client
3
 
 
4
 
    Copyright (C) 2008 Mehrdad Momeny <mehrdad.momeny@gmail.com>
5
 
 
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
 
3
 
 
4
    Copyright (C) 2008-2009 Mehrdad Momeny <mehrdad.momeny@gmail.com>
 
5
 
 
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.
 
13
 
10
14
 
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.
15
19
 
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/
19
22
 
20
23
*/
21
24
#ifndef QUICKTWIT_H
24
27
#include "datacontainers.h"
25
28
#include "ui_quicktwit_base.h"
26
29
#include <kdialog.h>
 
30
#include "account.h"
27
31
class StatusTextEdit;
28
32
class Backend;
29
33
/**
30
34
Widget for Quik twitting
31
35
 
32
 
        @author Mehrdad Momeny <mehrdad.momeny@gmail.com>
 
36
    @author Mehrdad Momeny <mehrdad.momeny@gmail.com>
33
37
*/
34
38
class QuickTwit : public KDialog
35
39
{
36
 
        Q_OBJECT
 
40
    Q_OBJECT
37
41
public:
38
 
  QuickTwit(QWidget* parent=0);
 
42
    QuickTwit( QWidget* parent = 0 );
39
43
 
40
44
    ~QuickTwit();
41
45
public slots:
42
46
    void showFocusedOnNewStatusField();
43
 
        void checkNewStatusCharactersCount(int numOfChars);
44
 
        void slotPostNewStatus(QString &newStatus);
45
 
        void slotPostNewStatusDone(bool isError);
46
 
        void sltAccepted();
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 );
 
50
    void sltAccepted();
 
51
    void addAccount( const Account &account );
 
52
    void removeAccount( const QString &alias );
49
53
 
50
54
protected:
51
55
    void loadAccounts();
52
 
        
 
56
 
53
57
signals:
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 );
56
60
 
57
61
protected slots:
58
 
    void checkAll(bool isAll);
 
62
    void checkAll( bool isAll );
59
63
private:
60
64
    Ui::quicktwit_base ui;
61
 
        StatusTextEdit *txtStatus;
62
 
//      Backend *twitter;
 
65
    StatusTextEdit *txtStatus;
 
66
//  Backend *twitter;
63
67
    QList<Account> accountsList;
64
68
};
65
69