1 //
2 // Copyright (C) 2001-2013 Graeme Walker <graeme_walker@users.sourceforge.net>
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 // ===
17 //
18 // gpop_disabled.cpp
19 //
20
21 #include "gdef.h"
22 #include "gpop.h"
23 #include "gpopserver.h"
24 #include "gpopsecrets.h"
25 #include "gpopstore.h"
26 #include "gexception.h"
27 #include "gstrings.h"
28
defaultPath()29 std::string GPop::Secrets::defaultPath()
30 {
31 return std::string() ; // the empty string disables some other stuff
32 }
33
Secrets(const std::string &)34 GPop::Secrets::Secrets( const std::string & )
35 {
36 }
37
~Secrets()38 GPop::Secrets::~Secrets()
39 {
40 }
41
valid() const42 bool GPop::Secrets::valid() const
43 {
44 return false ;
45 }
46
source() const47 std::string GPop::Secrets::source() const
48 {
49 return std::string() ;
50 }
51
secret(const std::string &,const std::string &) const52 std::string GPop::Secrets::secret( const std::string & , const std::string & ) const
53 {
54 return std::string() ;
55 }
56
contains(const std::string &) const57 bool GPop::Secrets::contains( const std::string & ) const
58 {
59 return false ;
60 }
61
62 // ==
63
Store(G::Path,bool,bool)64 GPop::Store::Store( G::Path , bool , bool )
65 {
66 }
67
68 // ==
69
Config(bool,unsigned int,const G::Strings &)70 GPop::Server::Config::Config( bool , unsigned int , const G::Strings & )
71 {
72 }
73
74 // ==
75
76 G_EXCEPTION( NotImplemented , "cannot do pop: pop support not enabled at build time" ) ;
77
Server(Store & store,const Secrets & secrets,Config)78 GPop::Server::Server( Store & store , const Secrets & secrets , Config ) :
79 m_store(store) ,
80 m_secrets(secrets)
81 {
82 throw NotImplemented() ;
83 }
84
~Server()85 GPop::Server::~Server()
86 {
87 }
88
report() const89 void GPop::Server::report() const
90 {
91 }
92
newPeer(GNet::Server::PeerInfo)93 GNet::ServerPeer * GPop::Server::newPeer( GNet::Server::PeerInfo )
94 {
95 return NULL ;
96 }
97
98
99 /// \file gpop_disabled.cpp
100