annotate osc/OSCMessage.h @ 111:7783bbb99887

* Update version for pre1
author Chris Cannam
date Thu, 01 Mar 2007 17:26:01 +0000
parents 76cc2c424268
children
rev   line source
Chris@69 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@69 2
Chris@69 3 /*
Chris@69 4 Sonic Visualiser
Chris@69 5 An audio file viewer and annotation editor.
Chris@69 6 Centre for Digital Music, Queen Mary, University of London.
Chris@69 7
Chris@69 8 This program is free software; you can redistribute it and/or
Chris@69 9 modify it under the terms of the GNU General Public License as
Chris@69 10 published by the Free Software Foundation; either version 2 of the
Chris@69 11 License, or (at your option) any later version. See the file
Chris@69 12 COPYING included with this distribution for more information.
Chris@69 13 */
Chris@69 14
Chris@69 15 /*
Chris@69 16 This is a modified version of a source file from the
Chris@69 17 Rosegarden MIDI and audio sequencer and notation editor.
Chris@69 18 This file copyright 2000-2006 Chris Cannam.
Chris@69 19 */
Chris@69 20
Chris@69 21 #ifndef _OSC_MESSAGE_H_
Chris@69 22 #define _OSC_MESSAGE_H_
Chris@69 23
Chris@69 24 #include <QString>
Chris@69 25 #include <QVariant>
Chris@69 26
Chris@69 27 #include <vector>
Chris@69 28 #include <map>
Chris@69 29
Chris@69 30 class OSCMessage
Chris@69 31 {
Chris@69 32 public:
Chris@69 33 OSCMessage() { }
Chris@69 34 ~OSCMessage();
Chris@69 35
Chris@69 36 void setTarget(const int &target) { m_target = target; }
Chris@69 37 int getTarget() const { return m_target; }
Chris@69 38
Chris@69 39 void setTargetData(const int &targetData) { m_targetData = targetData; }
Chris@69 40 int getTargetData() const { return m_targetData; }
Chris@69 41
Chris@69 42 void setMethod(QString method) { m_method = method; }
Chris@69 43 QString getMethod() const { return m_method; }
Chris@69 44
Chris@69 45 void clearArgs();
Chris@69 46 void addArg(QVariant arg);
Chris@69 47
Chris@69 48 size_t getArgCount() const;
Chris@69 49 const QVariant &getArg(size_t i) const;
Chris@69 50
Chris@69 51 private:
Chris@69 52 int m_target;
Chris@69 53 int m_targetData;
Chris@69 54 QString m_method;
Chris@69 55 std::vector<QVariant> m_args;
Chris@69 56 };
Chris@69 57
Chris@69 58 #endif