1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * pipeline-nocodec-ui.h:
6 * Moonlight List (moonlight-list@lists.ximian.com)
8 * Copyright 2007 Novell, Inc. (http://www.novell.com)
10 * See the LICENSE file included with the distribution for details.
13 #ifndef __MOON_PIPELINE_NOCODEC_UI_H__
14 #define __MOON_PIPELINE_NOCODEC_UI_H__
16 #include <gtk/gtkwidget.h>
20 #include "downloader.h"
22 #include "moonlightconfiguration.h"
24 class CodecDownloader
: public EventObject
{
26 static bool running
; // If there already is another CodecDownloader running
29 MoonlightConfiguration configuration
;
33 GtkWidget
*header_label
;
34 GtkWidget
*message_label
;
39 static void ResponseEventHandler (GtkDialog
*dialog
, gint response
, gpointer data
);
40 void ResponseEvent (GtkDialog
*dialog
, GtkResponseType response
);
42 void SetHeader (const gchar
*message
);
43 void SetMessage (const gchar
*message
);
45 void AdaptToParentWindow ();
47 void Close (); // Closes the window and unrefs ourself
48 void Show ();// Shows the codec installation ui and refs ourself
50 CodecDownloader (Surface
*surface
);
51 virtual ~CodecDownloader ();
55 static void ShowUI (Surface
*surface
);
58 #endif /* __MOON_PIPELINE_UI_H__ */