File: menu.h

package info (click to toggle)
vdr-plugin-markad 4.2.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,084 kB
  • sloc: cpp: 22,441; python: 613; makefile: 270; sh: 95
file content (35 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * menu.h: A plugin for the Video Disk Recorder
 *
 * See the README file for copyright information and how to reach the author.
 *
 */
#ifndef __menu_h_
#define __menu_h_

#include "status.h"


class cOsdMarkAd : public cOsdItem {
private:
    struct sRecording *entry;
public:
    explicit cOsdMarkAd(struct sRecording *Entry);
    struct sRecording *GetEntry() {
        return entry;
    }
};


class cMenuMarkAd : public cOsdMenu {
private:
    cStatusMarkAd *status = nullptr;
    void SetHelpText(struct sRecording *Entry);
    bool write();
    time_t last = time(nullptr);;
    int lastpos = 0;
public:
    explicit cMenuMarkAd(cStatusMarkAd *Status);
    eOSState ProcessKey(eKeys Key);
};
#endif