kwave  18.07.70
MemoryPlugin.h
Go to the documentation of this file.
1 /***************************************************************************
2  MemoryPlugin.h - setup of Kwave's memory management
3  -------------------
4  begin : Sun Aug 05 2001
5  copyright : (C) 2001 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef MEMORY_PLUGIN_H
19 #define MEMORY_PLUGIN_H
20 
21 #include "config.h"
22 #include <QObject>
23 #include <QString>
24 
25 #include "libkwave/Plugin.h"
26 
27 class QStringlist;
28 namespace Kwave
29 {
30 
31  class PluginContext;
32 
37  {
38  Q_OBJECT
39 
40  public:
41 
47  MemoryPlugin(QObject *parent, const QVariantList &args);
48 
50  virtual ~MemoryPlugin() Q_DECL_OVERRIDE;
51 
55  virtual void load(QStringList &params) Q_DECL_OVERRIDE;
56 
58  virtual QStringList *setup(QStringList &previous_params)
59  Q_DECL_OVERRIDE;
60 
61  protected:
62 
69  int interpreteParameters(QStringList &params);
70 
75  void applySettings();
76 
77  private:
78 
81 
87  unsigned int m_physical_limit;
88 
91 
98 
104  unsigned int m_virtual_limit;
105 
108 
112  unsigned int m_undo_limit;
113 
114  };
115 }
116 
117 #endif /* MEMORY_PLUGIN_H */
118 
119 //***************************************************************************
120 //***************************************************************************
unsigned int m_virtual_limit
Definition: MemoryPlugin.h:104
MemoryPlugin(QObject *parent, const QVariantList &args)
Definition: App.h:33
unsigned int m_physical_limit
Definition: MemoryPlugin.h:87
int interpreteParameters(QStringList &params)
virtual QStringList * setup(QStringList &previous_params) Q_DECL_OVERRIDE
unsigned int m_undo_limit
Definition: MemoryPlugin.h:112
virtual ~MemoryPlugin() Q_DECL_OVERRIDE
QString m_virtual_directory
Definition: MemoryPlugin.h:107
virtual void load(QStringList &params) Q_DECL_OVERRIDE