Nemiver  0.3
nmv-connection-manager.h
Go to the documentation of this file.
1 /* -*- Mode: C++; indent-tabs-mode:nil; c-basic-offset: 4; -*- */
2 
3 /*
4  *This file is part of the Nemiver Project.
5  *
6  *Nemiver is free software; you can redistribute
7  *it and/or modify it under the terms of
8  *the GNU General Public License as published by the
9  *Free Software Foundation; either version 2,
10  *or (at your option) any later version.
11  *
12  *Nemiver is distributed in the hope that it will
13  *be useful, but WITHOUT ANY WARRANTY;
14  *without even the implied warranty of
15  *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *See the GNU General Public License for more details.
17  *
18  *You should have received a copy of the
19  *GNU General Public License along with Nemiver;
20  *see the file COPYING.
21  *If not, write to the Free Software Foundation,
22  *Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23  *
24  *See COPYRIGHT file copyright information.
25  */
26 #ifndef __NMV_CONNECTION_MANAGER_H__
27 #define __NMV_CONNECTION_MANAGER_H__
28 
29 #include "nmv-connection.h"
30 
33 namespace nemiver {
34 
35 namespace common {
36  class UString;
37 }
38 
39 namespace common {
40 
47 {
48 
49  //forbid instanciation
52 
53 public:
54 
64  static void create_db_connection (const common::UString &a_connection_string,
65  const common::UString &a_user,
66  const common::UString &a_pass,
67  Connection &a_connection);
68 
74  static ConnectionSafePtr create_db_connection ();
75 
78  static const char* get_db_type ();
79 
80 protected:
81 
82 };//end class ConnectionManager
83 
84 }//end namespace common
85 }//end namespace nemiver
86 
87 #endif //__NMV_CONNECTION_MANAGER_H__
88 
nemiver
Definition: nmv-address.h:31
NEMIVER_API
#define NEMIVER_API
Definition: nmv-api-macros.h:53
nemiver::common::Connection
Definition: nmv-connection.h:49
nemiver::common::UString
Definition: nmv-ustring.h:45
nemiver::common::ConnectionManager
declaration of the entry point of the db abstraction layer. this class has the capacity to set the ty...
Definition: nmv-connection-manager.h:46
nmv-connection.h
nemiver::common::SafePtr
Definition: nmv-safe-ptr.h:71
common
Definition: nmv-proc-list-dialog.h:32