~ubuntu-branches/ubuntu/precise/lmms/precise-updates

« back to all changes in this revision

Viewing changes to include/RemotePlugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Артём Попов
  • Date: 2011-02-14 20:58:36 UTC
  • mfrom: (1.1.10 upstream) (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110214205836-2u41xus1d2mj8nfz
Tags: 0.4.10-1ubuntu1
* Merge from debian unstable (LP: #718801).  Remaining changes:
  - Replace build-dep on libwine-dev with wine1.2-dev to build
    against the newer Wine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * RemotePlugin.h - base class providing RPC like mechanisms
3
3
 *
4
 
 * Copyright (c) 2008-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
 
4
 * Copyright (c) 2008-2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5
5
 *
6
6
 * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
7
7
 *
602
602
        RemotePluginBase( shmFifo * _in, shmFifo * _out );
603
603
        virtual ~RemotePluginBase();
604
604
 
 
605
        void reset( shmFifo *in, shmFifo *out )
 
606
        {
 
607
                delete m_in;
 
608
                delete m_out;
 
609
                m_in = in;
 
610
                m_out = out;
 
611
        }
 
612
 
605
613
        void sendMessage( const message & _m );
606
614
        message receiveMessage();
607
615
 
695
703
class EXPORT RemotePlugin : public RemotePluginBase
696
704
{
697
705
public:
698
 
        RemotePlugin( const QString & _plugin_executable,
699
 
                                        bool _wait_for_init_done = true );
 
706
        RemotePlugin();
700
707
        virtual ~RemotePlugin();
701
708
 
702
709
        inline bool isRunning()
708
715
#endif
709
716
        }
710
717
 
711
 
        inline void waitForInitDone( bool _busy_waiting = true )
 
718
        bool init( const QString &pluginExecutable, bool waitForInitDoneMsg );
 
719
 
 
720
        inline void waitForInitDone( bool _busyWaiting = true )
712
721
        {
713
 
                m_failed = waitForMessage( IdInitDone,
714
 
                                        _busy_waiting ).id != IdInitDone;
 
722
                m_failed = waitForMessage( IdInitDone, _busyWaiting ).id != IdInitDone;
715
723
        }
716
724
 
717
725
        virtual bool processMessage( const message & _m );