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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (1.2.1) (7.1.6 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20130721115853-0aii5ee76hxm8z1f
* 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 CommandControllerException : public GNC::GCS::IException {
 
26
                public:
 
27
                        CommandControllerException(const std::string& msg, const std::string& componente = "Model", bool fatal = true) throw();
 
28
                };
 
29
 
 
30
 
 
31
                class EXTAPI ICommandController {
 
32
 
 
33
                protected:
 
34
                        ICommandController();
 
35
                        virtual ~ICommandController();
 
36
                        
 
37
                public:
 
38
 
 
39
                        static ICommandController* Instance();
 
40
                        static void FreeInstance();
 
41
 
 
42
                        virtual void ProcessSync(IComando*, bool autodelete, bool update = true, GNC::INotificadorProgreso* pNotifier = NULL) = 0;
 
43
                        virtual void ProcessAsync(std::string descr, IComando*, void* owner) = 0;
 
44
                        virtual void AbortarComando(long threadId, bool sincrono = true) = 0;
 
45
                        virtual void AbortarComandosDeOwner(void* owner) = 0;
 
46
                        virtual void AbortarComandosDeOwnerAsincrono(void* owner) = 0;
 
47
                        virtual void AbortarComando(IComando* pComando, bool sincrono = true) = 0;
 
48
 
 
49
                        virtual unsigned int GetNumActiveCommands() = 0;
 
50
 
 
51
                };
 
52
        }
 
53
}
 
54
#endif