Back to index

unity  6.0.0
GeisAdapterMock.cpp
Go to the documentation of this file.
00001 /*
00002  * Copyright 2012 Canonical Ltd.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of the GNU General Public License version 3, as published
00006  * by the  Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful, but
00009  * WITHOUT ANY WARRANTY; without even the implied warranties of
00010  * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * version 3 along with this program.  If not, see
00015  * <http://www.gnu.org/licenses/>
00016  *
00017  * Authored by: Daniel d'Andrada <daniel.dandrada@canonical.com>
00018  *
00019  */
00020 
00021 #include "GeisAdapterMock.h"
00022 
00023 GeisAdapterMock *GeisAdapterMock::_default = nullptr;
00024 
00025 GeisAdapterMock& GeisAdapterMock::Instance() {
00026   if (!_default)
00027   {
00028     _default = new GeisAdapterMock;
00029   }
00030   return *_default;
00031 }