Guest User

Untitled

a guest
Sep 24th, 2011
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #ifndef MORSECONVERTER_H
  2. #define MORSECONVERTER_H
  3.  
  4. #include "QString"
  5.  
  6. // I like Qt leave me alone!
  7.  
  8. class morseConverter
  9. {
  10. public:
  11.     morseConverter(); //make one
  12.     bool setString(); //have recognition of english/morse
  13.     // morse will be full of dots and dashes!
  14.     QString getMorse(); //return the morse as a string
  15.     QString getEnglish(); //return the english as a string
  16.  
  17. private:
  18.     void setMorseString(QString string); //called from setString
  19.     void setEnglishString(QString string); //called from setString
  20.     QString englishString; //the english
  21.     QString morseString; //the morse
  22. };
  23.  
  24. #endif // MORSECONVERTER_H
Advertisement
Add Comment
Please, Sign In to add comment