our current experimental Neutrino branch

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
mrcolor
2009-12-08 11:05:11 +00:00
commit bc5bd4154e
876 changed files with 193775 additions and 0 deletions

98
src/gui/timerlist.h Normal file
View File

@@ -0,0 +1,98 @@
/*
Neutrino-GUI - DBoxII-Project
Timerliste by Zwen
Homepage: http://dbox.cyberphoria.org/
Kommentar:
Diese GUI wurde von Grund auf neu programmiert und sollte nun vom
Aufbau und auch den Ausbaumoeglichkeiten gut aussehen. Neutrino basiert
auf der Client-Server Idee, diese GUI ist also von der direkten DBox-
Steuerung getrennt. Diese wird dann von Daemons uebernommen.
License: GPL
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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __timerlist__
#define __timerlist__
#include <timerdclient/timerdclient.h>
#include <gui/widget/menue.h>
#include <driver/framebuffer.h>
#include <string>
class CTimerList : public CMenuTarget
{
private:
CFrameBuffer *frameBuffer;
unsigned int selected;
unsigned int liststart;
unsigned int listmaxshow;
int fheight; // Fonthoehe Timerlist-Inhalt
int theight; // Fonthoehe Timerlist-Titel
int buttonHeight;
bool visible;
CTimerdClient *Timer;
CTimerd::TimerList timerlist; // List of timers
CTimerd::responseGetTimer timerNew;
int timerNew_standby_on;
char timerNew_channel_name[30];
char m_weekdaysStr[8];
int timer_apids_dflt;
int timer_apids_std;
int timer_apids_ac3;
int timer_apids_alt;
int width;
int height;
int x;
int y;
int skipEventID;
void paintItem(int pos);
void paint();
void paintHead();
void paintFoot();
void hide();
int modifyTimer();
int newTimer();
public:
CTimerList();
~CTimerList();
void updateEvents(void);
int show();
int exec(CMenuTarget* parent, const std::string & actionKey);
static const char * convertTimerType2String(const CTimerd::CTimerEventTypes type); // UTF-8
static std::string convertTimerRepeat2String(const CTimerd::CTimerEventRepeat rep); // UTF-8
static std::string convertChannelId2String(const t_channel_id id); // UTF-8
};
bool askUserOnTimerConflict(time_t announceTime, time_t stopTime);
#endif