source: projects/punch-card/punch-card-editor/src/driver/driver.h @ 52

Last change on this file since 52 was 52, checked in by sven, 10 years ago

Punch Card Editor: Code reordering and class renaming, rewriting.
Now using the namespace QPunchCard everywhere.

Parted the whole application into 5 parts/directories:

  • app: The application core with MainWindow and main() function
  • qpunchcard: Everything directly binary card related (no interpretation): modeling, input/output, view. Most important classes are Card, Deck, FileFormat, Widget
  • text: Everything related to text interpretation of Cards/Card Decks. Having the abstract Codec classes and the Text::Editor, Text::EditorDock
  • deckviewer: Application components like binary card editing central widget (CardEditor) and Navigator (Model View Controller classes)
  • driver: Basis for the driver framework, must be written soon.

Deck now hides the complete Storage to implement frontend methods that
implement versioning (Undo framework). All code was cleaned up, but doesn't
compile right now (still quite some non heavy errors).

-- Sven @ workstation

File size: 481 bytes
Line 
1#ifndef DRIVER_H
2#define DRIVER_H
3
4#include <QString>
5#include <QList>
6
7namespace QPunchCard {
8namespace Driver {
9        class Driver;
10        class DriverFactory;
11};
12};
13
14#include "app/mainwindow.h"
15
16namespace QPunchCard {
17namespace Driver {
18
19
20class Driver {
21public:
22        virtual void execute() = 0;
23};
24
25class DriverFactory {
26        static QList<QString> availableDrivers();
27        static Driver* createDriver(const QString& name);
28};
29
30
31
32}; // namespace Driver
33}; // namespace QPunchCard
34
35
36#endif // DRIVER_H
37
Note: See TracBrowser for help on using the repository browser.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License