~mandel/ubuntu-download-manager/remove-shared-process-factory

« back to all changes in this revision

Viewing changes to libubuntudownloadmanager/downloads/state_machines/state.h

  • Committer: Tarmac
  • Author(s): Manuel de la Pena
  • Date: 2013-11-21 12:06:12 UTC
  • mfrom: (148.13.24 keep-track-of-states)
  • Revision ID: tarmac-20131121120612-s3xcba5yvun01q6u
Keep track of the state in the state machine so that tests are easier to perform.

Approved by PS Jenkins bot, Mike McCracken.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of version 3 of the GNU Lesser General Public
 
6
 * License as 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 GNU
 
11
 * General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public
 
14
 * License along with this library; if not, write to the
 
15
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
16
 * Boston, MA 02110-1301, USA.
 
17
 */
 
18
 
 
19
#ifndef DOWNLOADER_LIB_STATE_H
 
20
#define DOWNLOADER_LIB_STATE_H
 
21
 
 
22
#include <QState>
 
23
#include <QVariant>
 
24
 
 
25
class State : public QState {
 
26
    Q_OBJECT
 
27
 public:
 
28
    State(QObject* obj, const char* property, QVariant value, QState* parent = 0);
 
29
    
 
30
};
 
31
 
 
32
#endif  // DOWNLOADER_LIB_STATE_H