Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

preferences.cc File Reference

#include "preferences.h"
#include "kino_common.h"
#include "stringutils.h"
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string>
#include <sstream>
#include <iostream>

Include dependency graph for preferences.cc:

Go to the source code of this file.

Defines

#define GKEYFILE_GROUP   "general"

Functions

static string kino_config_file ()


Define Documentation

#define GKEYFILE_GROUP   "general"
 

Definition at line 38 of file preferences.cc.

Referenced by Preferences::get(), and Preferences::set().


Function Documentation

static string kino_config_file  )  [static]
 

Definition at line 40 of file preferences.cc.

Referenced by Preferences::Preferences(), and Preferences::Save().

00041 {
00042     static string filename;
00043 
00044     if(!filename.size())
00045     {
00046         char *kinoHome=getenv("KINO_HOME");
00047 
00048         if(kinoHome)
00049             filename=string(kinoHome)+string("/kinorc");
00050         else
00051             filename = string( getenv( "HOME" ) ) + string( "/.kinorc" );
00052     }
00053 
00054     return filename;
00055 }


Generated on Sun Mar 11 22:12:34 2007 for Kino by  doxygen 1.4.2