source: SMSSender/src/business/BusinessFactory.cpp @ 43:10dd65d71f7f

3.0
Last change on this file since 43:10dd65d71f7f was 43:10dd65d71f7f, checked in by Sämy Zehnder <saemy.zehnder@…>, 12 years ago
  • Did a lot of work...
File size: 474 bytes
Line 
1/*
2 * BusinessFactory.cpp
3 *
4 *  Created on: May 3, 2009
5 *      Author: saemy
6 */
7
8#include "BusinessFactory.h"
9
10#include "BCContact.h"
11#include "BCGroup.h"
12
13BusinessFactory* BusinessFactory::instance_=0;
14BusinessFactory* BusinessFactory::instance(){
15    return instance_ ? instance_ : (instance_ = new BusinessFactory);
16}
17
18IContact* BusinessFactory::getContactInstance(){
19    return new BCContact;
20}
21
22IGroup* BusinessFactory::getGroupInstance(){
23    return new BCGroup;
24}
Note: See TracBrowser for help on using the repository browser.