File: screenshotpluginfactory.cpp

package info (click to toggle)
packagesearch 2.10.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,704 kB
  • sloc: cpp: 9,176; perl: 248; makefile: 15; sh: 11
file content (48 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// C++ Implementation: screenshotpluginfactory
//
// Description: 
//
//
// Author: Benjamin Mesing <bensmail@gmx.net>, (C) 2010
//
// Copyright: See COPYING file that comes with this distribution
//
//

#include "screenshotpluginfactory.h"

#include "screenshotplugin.h"

namespace NPlugin {

ScreenshotPluginFactory* ScreenshotPluginFactory::_pInstance = 0;

ScreenshotPluginFactory::ScreenshotPluginFactory()
{
}


ScreenshotPluginFactory::~ScreenshotPluginFactory()
{
}

Plugin* ScreenshotPluginFactory::createPlugin(const string& name) const
{
	if (name=="ScreenshotPlugin")
	{
		return new ScreenshotPlugin(*_pContainer);
	}
	return 0;
}

ScreenshotPluginFactory* ScreenshotPluginFactory::getInstance()
{
	if (_pInstance == 0)
		_pInstance = new ScreenshotPluginFactory;
	return _pInstance;
}



};