X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=loginwindow.h;fp=loginwindow.h;h=ae98d53eaf7cc3f1178615b3469be4d805cd3955;hb=e884546178976e5db16be63d1faaf0a127fe60d6;hp=0000000000000000000000000000000000000000;hpb=e3f8ac15b2beb8c1b8513132401a75648488de62;p=onlineservices diff --git a/loginwindow.h b/loginwindow.h new file mode 100644 index 0000000..ae98d53 --- /dev/null +++ b/loginwindow.h @@ -0,0 +1,57 @@ +/* + * This file is part of Maemo 5 Office UI for KOffice + * + * Copyright (C) 2010 Manikandaprasad N C . + * + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * 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 St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef LOGINWINDOW_H +#define LOGINWINDOW_H + +#include + +#include "ui_authenticationdialog.h" + +class SlideShare; +class GoogleDocumentService; + +class LoginWindow : public QDialog +{ + Q_OBJECT + +public: + LoginWindow(QWidget *parent = 0); + GoogleDocumentService * googleService() { return gdoc; } + void setShowProgressIndicator(bool visible); + +private slots: + void loginService(); + void serviceSelected(int index); + void authenticated(bool success); + void slideShareLoginDoneSlot(bool loginStatus); + +private: + Ui_Dialog *m_authDialog; + GoogleDocumentService *gdoc; + SlideShare *service; + void enableWidgets(); + void disableWidgets(); +}; + +#endif // LOGINWINDOW_H