~ubuntu-branches/ubuntu/oneiric/nux/oneiric

« back to all changes in this revision

Viewing changes to NuxCore/NPlatform.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-12-17 13:59:57 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101217135957-5gvg6fkjxaa252i0
Tags: upstream-0.9.12
ImportĀ upstreamĀ versionĀ 0.9.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2010 Inalogic Inc.
3
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify it
5
 
 * under the terms of the GNU Lesser General Public License version 3, as
6
 
 * published by the  Free Software Foundation.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful, but
9
 
 * WITHOUT ANY WARRANTY; without even the implied warranties of
10
 
 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
11
 
 * PURPOSE.  See the applicable version of the GNU Lesser General Public
12
 
 * License for more details.
13
 
 *
14
 
 * You should have received a copy of both the GNU Lesser General Public
15
 
 * License version 3 along with this program.  If not, see
16
 
 * <http://www.gnu.org/licenses/>
17
 
 *
18
 
 * Authored by: Jay Taoko <jaytaoko@inalogic.com>
19
 
 *
20
 
 */
21
 
 
22
 
 
23
 
#ifndef NPLATFORM_H
24
 
#define NPLATFORM_H
25
 
 
26
 
namespace nux
27
 
{
28
 
 
29
 
  void NuxCoreInitialize (const TCHAR *CommandLine);
30
 
  void inlPreInitializePlatform();
31
 
  void inlInitializePlatform();
32
 
  void inlPostInitializePlatform();
33
 
  void inlExitSystem();
34
 
 
35
 
  void inlInitRandomGenerator();
36
 
 
37
 
  /*-----------------------------------------------------------------------------
38
 
  Command line.
39
 
  -----------------------------------------------------------------------------*/
40
 
 
41
 
//! Get the program command line
42
 
  /*!
43
 
      Get the program command line.
44
 
      @return The program command line.
45
 
  */
46
 
  NString GetCmdLine();
47
 
 
48
 
//! Get startup directory.
49
 
  /*!
50
 
      Get startup directory.
51
 
      @return The computer name.
52
 
  */
53
 
  NString GetProgramDirectory();
54
 
 
55
 
//! Get computer name.
56
 
  /*!
57
 
      Get computer name.
58
 
      @return The computer name.
59
 
  */
60
 
  NString GetComputerName();
61
 
 
62
 
//! Get user name.
63
 
  /*!
64
 
      Get the user name.
65
 
      @return The user name.
66
 
  */
67
 
  NString GetUserName();
68
 
 
69
 
 
70
 
//! Return the logs directory
71
 
  /*!
72
 
      Returns the directory where logs files are output.
73
 
      This cannot be in a .ini files as the system may start logging before the .ini files are read.
74
 
 
75
 
      @return The logs directory
76
 
  */
77
 
  NString GetLogDirectory();
78
 
 
79
 
  class NGlobalData
80
 
  {
81
 
    NUX_DECLARE_GLOBAL_OBJECT (NGlobalData, GlobalSingletonInitializer);
82
 
  public:
83
 
 
84
 
    void Initialize (const TCHAR *CommandLine);
85
 
 
86
 
    t_u32 m_RandomSeed;
87
 
    NString m_UserName;
88
 
    NString m_ComputerName;
89
 
    NString m_ProgramName;
90
 
    NString m_ProgramDirectory;
91
 
    NString m_CommandLine;
92
 
  };
93
 
 
94
 
}
95
 
 
96
 
#endif // NPLATFORM_H
 
 
b'\\ No newline at end of file'