src/hbcore/inputfw/hbinputsettingproxy.h
changeset 34 ed14f46c0e55
parent 6 c3690ec91ef8
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    54     virtual ~HbInputSettingProxy();
    54     virtual ~HbInputSettingProxy();
    55 
    55 
    56 public:
    56 public:
    57     void connectObservingObject(QObject *observer);
    57     void connectObservingObject(QObject *observer);
    58     void disconnectObservingObject(QObject *observer);
    58     void disconnectObservingObject(QObject *observer);
       
    59 
    59     HbInputLanguage globalInputLanguage() const;
    60     HbInputLanguage globalInputLanguage() const;
    60     void availableHwKeyboard(QList<HbKeyboardType>& listOfAvailableKeyboards) const;
    61     void setGlobalInputLanguage(const HbInputLanguage &language);
       
    62 
    61     HbInputLanguage globalSecondaryInputLanguage() const;
    63     HbInputLanguage globalSecondaryInputLanguage() const;
    62     HbKeyboardType activeKeyboard() const;
       
    63     HbKeyboardType activeHwKeyboard() const;
       
    64     HbKeyboardType activeTouchKeyboard() const;
       
    65     void setGlobalInputLanguage(const HbInputLanguage &langauge);
       
    66     void setGlobalSecondaryInputLanguage(const HbInputLanguage &language);
    64     void setGlobalSecondaryInputLanguage(const HbInputLanguage &language);
    67     void setActiveKeyboard(HbKeyboardType keyboard);
    65 
    68     void setActiveHwKeyboard(HbKeyboardType keyboard);
       
    69     void setActiveTouchKeyboard(HbKeyboardType keyboard);
       
    70     bool predictiveInputStatus(HbKeyboardSettingFlags keyboardType) const;
    66     bool predictiveInputStatus(HbKeyboardSettingFlags keyboardType) const;
    71     void setPredictiveInputStatus(HbKeyboardSettingFlags keyboardType, bool newStatus);
    67     void setPredictiveInputStatus(HbKeyboardSettingFlags keyboardType, bool newStatus);
       
    68 
    72     bool predictiveInputStatusForActiveKeyboard() const;
    69     bool predictiveInputStatusForActiveKeyboard() const;
    73     void setPredictiveInputStatusForActiveKeyboard(bool newStatus);
    70     void setPredictiveInputStatusForActiveKeyboard(bool newStatus);
       
    71 
       
    72     void availableHwKeyboard(QList<HbKeyboardType> &listOfAvailableKeyboards) const;
       
    73 
       
    74     HbKeyboardType activeKeyboard(Qt::Orientation orientation) const;
       
    75     void setActiveKeyboard(HbKeyboardType keyboard);
       
    76 
    74     HbInputDigitType globalDigitType() const;
    77     HbInputDigitType globalDigitType() const;
    75     void setGlobalDigitType(HbInputDigitType digitType);
    78     void setGlobalDigitType(HbInputDigitType digitType);
       
    79 
    76     bool automaticTextCasingForQwerty();
    80     bool automaticTextCasingForQwerty();
    77     void setAutomaticTextCasingForQwerty(bool status);
    81     void setAutomaticTextCasingForQwerty(bool status);
       
    82 
       
    83     bool isCharacterPreviewForQwertyEnabled();
    78     void setCharacterPreviewForQwerty(bool previewEnabled);
    84     void setCharacterPreviewForQwerty(bool previewEnabled);
    79     bool isCharacterPreviewForQwertyEnabled();
    85 
    80     HbInputMethodDescriptor activeCustomInputMethod() const;
       
    81     void setActiveCustomInputMethod(const HbInputMethodDescriptor &inputMethod);
       
    82     Qt::Orientation screenOrientation();
       
    83     void setScreenOrientation(Qt::Orientation screenOrientation);
       
    84     void notifyScreenOrientationChange();
       
    85     bool orientationChangeCompleted() const;
       
    86     void initializeOrientation(Qt::Orientation screenOrientation);
       
    87     bool regionalCorrectionEnabled();
    86     bool regionalCorrectionEnabled();
    88     void enableRegionalCorrection(bool status);
    87     void enableRegionalCorrection(bool status);
       
    88 
       
    89     int keypressTimeout() const;
    89     void setKeypressTimeout(int timeout);
    90     void setKeypressTimeout(int timeout);
    90     int keypressTimeout() const;
    91 
       
    92     bool isAutocompletionEnabled(HbKeyboardSettingFlags keyboardType) const;
    91     void setAutocompletionStatus(HbKeyboardSettingFlags keyboardType, bool newStatus);
    93     void setAutocompletionStatus(HbKeyboardSettingFlags keyboardType, bool newStatus);
    92     bool isAutocompletionEnabled(HbKeyboardSettingFlags keyboardType) const;
    94 
       
    95     HbTypingCorrectionLevel typingCorrectionLevel() const;
    93     void setTypingCorrectionLevel(HbTypingCorrectionLevel level);
    96     void setTypingCorrectionLevel(HbTypingCorrectionLevel level);
    94     HbTypingCorrectionLevel typingCorrectionLevel() const;
    97 
       
    98     HbPrimaryCandidateMode primaryCandidateMode() const;
    95     void setPrimaryCandidateMode(HbPrimaryCandidateMode mode);
    99     void setPrimaryCandidateMode(HbPrimaryCandidateMode mode);
    96     HbPrimaryCandidateMode primaryCandidateMode() const;
   100 
    97     HbInputMethodDescriptor preferredInputMethod(Qt::Orientation orientation) const;
   101     HbInputMethodDescriptor preferredInputMethod(Qt::Orientation orientation) const;
    98     HbInputMethodDescriptor preferredInputMethod() const;
   102     void setPreferredInputMethod(Qt::Orientation orientation, const HbInputMethodDescriptor &inputMethod, const QByteArray &customData = QByteArray());
    99     QByteArray preferredInputMethodCustomData(Qt::Orientation orientation) const;
   103     QByteArray preferredInputMethodCustomData(Qt::Orientation orientation) const;
   100     void setPreferredInputMethod(Qt::Orientation orientation, const HbInputMethodDescriptor &inputMethod, const QByteArray &customData = QByteArray());
   104 
       
   105     HbHwrWritingSpeed hwrWritingSpeed() const;
       
   106     void setHwrWritingSpeed(HbHwrWritingSpeed speed);
       
   107 
       
   108     HbCangjieDetailMode detailedCangjieMode() const;
       
   109     void setDetailedCangjieMode(HbCangjieDetailMode cangjieDetail);
       
   110 
       
   111     bool useWesternDefaultKeypadForChinese() const;
       
   112     void setWesternDefaultKeypadForChinese(bool useWestern);
   101 
   113 
   102 signals:
   114 signals:
   103     void globalInputLanguageChanged(const HbInputLanguage &newLanguage);
   115     void globalInputLanguageChanged(const HbInputLanguage &newLanguage);
   104     void globalSecondaryInputLanguageChanged(const HbInputLanguage &newLanguage);
   116     void globalSecondaryInputLanguageChanged(const HbInputLanguage &newLanguage);
   105     void activeKeyboardChanged(HbKeyboardType newKeyboard);
       
   106     void activeHwKeyboardChanged(HbKeyboardType newKeyboard);
       
   107     void activeTouchKeyboardChanged(HbKeyboardType newKeyboard);
       
   108     void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
   117     void predictiveInputStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
   109     void automaticTextCasingStateForQwertyChanged(bool newState);
   118     void automaticTextCasingStateForQwertyChanged(bool newState);
   110     void characterPreviewStateForQwertyChanged(bool newState);
   119     void characterPreviewStateForQwertyChanged(bool newState);
   111     void orientationAboutToChange();
       
   112     void orientationChanged(Qt::Orientation orientation);
       
   113     void regionalCorretionStatusChanged(bool newStatus);
   120     void regionalCorretionStatusChanged(bool newStatus);
   114     void keypressTimeoutChanged(int newTimeout);
   121     void keypressTimeoutChanged(int newTimeout);
   115     void autocompletionStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
   122     void autocompletionStateChanged(HbKeyboardSettingFlags keyboardType, bool newState);
   116     void typingCorrectionLevelChanged(HbTypingCorrectionLevel newLevel);
   123     void typingCorrectionLevelChanged(HbTypingCorrectionLevel newLevel);
   117     void primaryCandidateModeChanged(HbPrimaryCandidateMode newMode);
   124     void primaryCandidateModeChanged(HbPrimaryCandidateMode newMode);
       
   125     void hwrWritingSpeedChanged(HbHwrWritingSpeed speed);
       
   126     void detailedCangjieModeChanged(HbCangjieDetailMode);
       
   127     void chineseDefaultKeypadChanged(bool toWestern);
   118 
   128 
   119 public slots:
   129 public slots:
   120     void togglePrediction();
   130     void togglePrediction();
   121     void shutdown();
   131     void shutdown();
   122 
   132