This repository has been archived on 2023-11-19. You can view files and clone it, but cannot push or open issues or pull requests.
goober-bb10/src/ActiveFrameQML.h
2016-10-22 15:56:38 -07:00

45 lines
1.3 KiB
C++

/*
* Copyright (C) 2016 Morgan McMillian <gilag@monkeystew.com>
*
* This file is apart of the Goober application, a client for pnut.io
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef ACTIVEFRAMEQML_H_
#define ACTIVEFRAMEQML_H_
#include <QObject>
#include <bb/cascades/Label>
#include <bb/cascades/SceneCover>
using namespace ::bb::cascades;
class ActiveFrameQML: public SceneCover
{
Q_OBJECT
public:
ActiveFrameQML(QObject *parent=0);
virtual ~ActiveFrameQML();
Q_INVOKABLE void setGlobalUnread(QString count);
Q_INVOKABLE void setHomeUnread(QString count);
private:
bb::cascades::Label *global_unread_label;
bb::cascades::Label *home_unread_label;
};
#endif /* ACTIVEFRAMEQML_H_ */