nsGNOMEShellService.cpp File Reference
#include "nsCOMPtr.h"
#include "nsGNOMEShellService.h"
#include "nsShellService.h"
#include "nsIServiceManager.h"
#include "nsILocalFile.h"
#include "nsIProperties.h"
#include "nsDirectoryServiceDefs.h"
#include "nsIPrefService.h"
#include "prenv.h"
#include "nsStringAPI.h"
#include "nsIGConfService.h"
#include "nsIGnomeVFSService.h"
#include "nsIStringBundle.h"
#include "nsIOutputStream.h"
#include "nsIProcess.h"
#include "nsNetUtil.h"
#include "nsIDOMHTMLImageElement.h"
#include "nsIImageLoadingContent.h"
#include "imgIRequest.h"
#include "imgIContainer.h"
#include "prprf.h"
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <limits.h>
#include <stdlib.h>
Include dependency graph for nsGNOMEShellService.cpp:

Go to the source code of this file.

Classes

struct  ProtocolAssociation
 
struct  MimeTypeAssociation
 

Macros

#define DG_BACKGROUND   "/desktop/gnome/background"
 
#define COLOR_16_TO_8_BIT(_c)   ((_c) >> 8)
 
#define COLOR_8_TO_16_BIT(_c)   ((_c) << 8 | (_c))
 

Functions

static nsresult WriteImage (const nsCString &aPath, imgIContainer *aImage)
 
static void ColorToCString (PRUint32 aColor, nsCString &aResult)
 

Variables

static const ProtocolAssociation appProtocols []
 
static const MimeTypeAssociation appTypes []
 
static const char kDocumentIconPath [] = "firefox-document.png"
 
static const char kDesktopImageKey [] = "/desktop/gnome/background" "/picture_filename"
 
static const char kDesktopOptionsKey [] = "/desktop/gnome/background" "/picture_options"
 
static const char kDesktopDrawBGKey [] = "/desktop/gnome/background" "/draw_background"
 
static const char kDesktopColorKey [] = "/desktop/gnome/background" "/primary_color"
 

Macro Definition Documentation

#define COLOR_16_TO_8_BIT (   _c)    ((_c) >> 8)

Definition at line 439 of file nsGNOMEShellService.cpp.

#define COLOR_8_TO_16_BIT (   _c)    ((_c) << 8 | (_c))

Definition at line 440 of file nsGNOMEShellService.cpp.

#define DG_BACKGROUND   "/desktop/gnome/background"

Definition at line 97 of file nsGNOMEShellService.cpp.

Function Documentation

static void ColorToCString ( PRUint32  aColor,
nsCString &  aResult 
)
static

Definition at line 467 of file nsGNOMEShellService.cpp.

static nsresult WriteImage ( const nsCString &  aPath,
imgIContainer *  aImage 
)
static

Definition at line 350 of file nsGNOMEShellService.cpp.

Variable Documentation

const ProtocolAssociation appProtocols[]
static
Initial value:
= {
{ "http", PR_TRUE },
{ "https", PR_TRUE },
{ "ftp", PR_FALSE },
{ "chrome", PR_FALSE }
}

Definition at line 82 of file nsGNOMEShellService.cpp.

const MimeTypeAssociation appTypes[]
static
Initial value:
= {
{ "text/html", "htm html shtml" },
{ "application/xhtml+xml", "xhtml xht" }
}

Definition at line 89 of file nsGNOMEShellService.cpp.

const char kDesktopColorKey[] = "/desktop/gnome/background" "/primary_color"
static

Definition at line 102 of file nsGNOMEShellService.cpp.

const char kDesktopDrawBGKey[] = "/desktop/gnome/background" "/draw_background"
static

Definition at line 101 of file nsGNOMEShellService.cpp.

const char kDesktopImageKey[] = "/desktop/gnome/background" "/picture_filename"
static

Definition at line 99 of file nsGNOMEShellService.cpp.

const char kDesktopOptionsKey[] = "/desktop/gnome/background" "/picture_options"
static

Definition at line 100 of file nsGNOMEShellService.cpp.

const char kDocumentIconPath[] = "firefox-document.png"
static

Definition at line 94 of file nsGNOMEShellService.cpp.