Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MORSECONVERTER_H
- #define MORSECONVERTER_H
- #include "QString"
- // I like Qt leave me alone!
- class morseConverter
- {
- public:
- morseConverter(); //make one
- bool setString(); //have recognition of english/morse
- // morse will be full of dots and dashes!
- QString getMorse(); //return the morse as a string
- QString getEnglish(); //return the english as a string
- private:
- void setMorseString(QString string); //called from setString
- void setEnglishString(QString string); //called from setString
- QString englishString; //the english
- QString morseString; //the morse
- };
- #endif // MORSECONVERTER_H
Advertisement
Add Comment
Please, Sign In to add comment