~xavi-garcia-mena/unity-scopes-api/utils-qt

« back to all changes in this revision

Viewing changes to src/scopes/qt/QScopeBase.cpp

  • Committer: Xavi Garcia
  • Date: 2015-01-20 13:59:36 UTC
  • Revision ID: xavi.garcia.mena@canonical.com-20150120135936-cogxk8ok7g0gvo8g
Added Qt-bindings classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2015 Canonical Ltd
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License version 3 as
 
6
 * published by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authored by: Xavi Garcia <xavi.garcia.mena@canonical.com>
 
17
 */
 
18
 
 
19
#include <unity/scopes/qt/QScopeBase.h>
 
20
#include <unity/scopes/qt/internal/QScopeBaseImpl.h>
 
21
 
 
22
using namespace unity::scopes::qt;
 
23
 
 
24
QScopeBase::QScopeBase()
 
25
    : p(new internal::QScopeBaseImpl())
 
26
{
 
27
}
 
28
 
 
29
QScopeBase::~QScopeBase()
 
30
{
 
31
}
 
32
 
 
33
void QScopeBase::start(QString const& start_string)
 
34
{
 
35
    p->start(start_string.toUtf8().data());
 
36
}
 
37
 
 
38
void QScopeBase::stop()
 
39
{
 
40
    p->stop();
 
41
}