~ubuntu-branches/ubuntu/wily/me-tv/wily-proposed

« back to all changes in this revision

Viewing changes to src/profile.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Evans
  • Date: 2009-06-27 00:46:22 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090627004622-q0zvsie6ioa60vh3
Tags: 0.9.4-0ubuntu1
* New upstream release (LP: #379706)
  - Fix to stop EPG update crashing the application
    after faulty save (LP: #72872)
  - Fixed spin buttons from GtkBuilder conversion (LP: #382197) 
  - Fixed icon on application popup menu (LP: #379685)
  - Fixed compiling of me-tv-0.8.12 fails on Fedora 11 (LP: #377020)
  - Fixed Failed to lock to channel at boot (LP: #377050)
  - Increased timeout to 5 seconds again (LP: #371165)
  - Fixed me-tv unusually slow, often freezes (LP: #351510)
  - Fixed channel persistence (LP: #361514)
  - Fix for forward slashes in description (LP: #359710)
  - Fixed Must create .me-tv directory manually (LP: #353796)
  - Fixed audio stream can't be changed (LP: #350402)
* debian/control:
  - Removed dependency libxine1-ffmpeg, libxine1-x
  - Removed libglademm-2.4-dev Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2009 Michael Lamothe
3
 
 *
4
 
 * This file is part of Me TV
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 * 
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU Library General Public License for more details.
15
 
 * 
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
19
 
 */
20
 
 
21
 
#ifndef __PROFILE_H__
22
 
#define __PROFILE_H__
23
 
 
24
 
#include <glibmm.h>
25
 
#include "channel.h"
26
 
 
27
 
#define MAX_CHANNELS 100
28
 
 
29
 
class Profile
30
 
{
31
 
private:
32
 
        ChannelList channels;
33
 
        Channel* display_channel;
34
 
 
35
 
public:
36
 
        Profile();
37
 
                
38
 
        void next_channel();
39
 
        void previous_channel();
40
 
        void set_display_channel(const Channel& channel);
41
 
        void set_display_channel(guint channel_id);
42
 
        void add_channel(Channel& channel);
43
 
        void add_channels(ChannelList& channels);
44
 
        void set_channels(ChannelList& channels);
45
 
        void clear();
46
 
        ChannelList& get_channels();
47
 
        const ChannelList& get_channels() const;
48
 
        Channel* get_display_channel();
49
 
        sigc::signal<void, const Channel&> signal_display_channel_changed;
50
 
        Channel& get_channel(guint channel_id);
51
 
        Channel* find_channel(guint frequency, guint service_id);
52
 
        Channel* find_channel(guint channel_id);
53
 
 
54
 
        guint                   profile_id;
55
 
        Glib::ustring   name;
56
 
};
57
 
 
58
 
typedef std::list<Profile> ProfileList;
59
 
 
60
 
#endif