Debian Codegraph @

components/extension/youtube/videolistentry.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2021 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_YOUTUBE_VIDEOLISTENTRY
14 #define H_YOUTUBE_VIDEOLISTENTRY
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 #include "video.h"
20
21 using namespace smooth;
22
23 using namespace BoCA;
24
25 namespace BoCA
26 {
27 class VideoListEntry : public ListEntry
28 {
29 private:
30 Bool downloadFinished;
31
32 PopupMenu *contextMenu;
33 protected:
34 Video *video;
35
36 Image *image;
37 Progressbar *progress;
38
39 Image *CreateImageFromVideo();
40 public:
41 VideoListEntry(Video *);
42 virtual ~VideoListEntry();
43
44 virtual Int Paint(Int);
45 accessors:
46 Video *GetVideo() { return video; }
47 slots:
48 Void OnFinishDownload();
49
50 Void OnChangeSize(const Size &);
51
52 PopupMenu *GetContextMenu();
53 };
54 };
55
56 #endif