~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/api/controllers/icommandscontroller.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#pragma once
2
 
/*
3
 
 *  
4
 
 *  $Id: icommandscontroller.h $
5
 
 *  Ginkgo CADx Project
6
 
 *
7
 
 *  Copyright 2008-12 MetaEmotion S.L. All rights reserved.
8
 
 *  http://ginkgo-cadx.com
9
 
 *
10
 
 *  This file is licensed under LGPL v3 license.
11
 
 *  See License.txt for details
12
 
 *
13
 
 */
14
 
#ifndef ICOMMANDSCONTROLLER_H
15
 
#define ICOMMANDSCONTROLLER_H
16
 
 
17
 
#include <string>
18
 
 
19
 
#include <api/iexception.h>
20
 
#include <api/icommand.h>
21
 
 
22
 
namespace GNC {
23
 
        namespace GCS {
24
 
 
25
 
                class EXTAPI ControladorComandosException : public GNC::GCS::IException {
26
 
                public:
27
 
                        ControladorComandosException(const std::string& msg, const std::string& componente = "Model", bool fatal = true) throw();
28
 
                };
29
 
 
30
 
 
31
 
                class EXTAPI IControladorComandos {
32
 
 
33
 
                protected:
34
 
                        IControladorComandos();
35
 
                        virtual ~IControladorComandos();
36
 
                        
37
 
                public:
38
 
 
39
 
                        static IControladorComandos* Instance();
40
 
                        static void FreeInstance();
41
 
 
42
 
                        virtual void Process(IComando*) = 0;
43
 
                        virtual void ProcessSync(IComando*, bool autodelete) = 0;
44
 
                        virtual void ProcessAsync(std::string descr, IComando*, void* owner) = 0;
45
 
                        virtual void AbortarComando(long threadId, bool sincrono = true) = 0;
46
 
                        virtual void AbortarComandosDeOwner(void* owner) = 0;
47
 
                        virtual void AbortarComandosDeOwnerAsincrono(void* owner) = 0;
48
 
                        virtual void AbortarComando(IComando* pComando, bool sincrono = true) = 0;
49
 
 
50
 
                        virtual unsigned int GetNumActiveCommands() = 0;
51
 
 
52
 
                };
53
 
        }
54
 
}
55
 
#endif