mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-19 20:13:32 -04:00
@@ -23,7 +23,7 @@ namespace MiscServices {
|
||||
public:
|
||||
InputAttribute();
|
||||
InputAttribute(const InputAttribute& attribute);
|
||||
InputAttribute& operator = (const InputAttribute& attribute);
|
||||
InputAttribute& operator =(const InputAttribute& attribute);
|
||||
~InputAttribute();
|
||||
virtual bool Marshalling(Parcel &parcel) const override;
|
||||
static InputAttribute *Unmarshalling(Parcel &parcel);
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace MiscServices {
|
||||
std::u16string name;
|
||||
MessageParcel inputChannelParcel;
|
||||
InputChannel(const InputChannel& channel);
|
||||
InputChannel& operator = (const InputChannel& channel);
|
||||
InputChannel& operator =(const InputChannel& channel);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace MiscServices {
|
||||
InputMethodProperty();
|
||||
~InputMethodProperty();
|
||||
InputMethodProperty(const InputMethodProperty& property);
|
||||
InputMethodProperty& operator = (const InputMethodProperty& property);
|
||||
InputMethodProperty& operator =(const InputMethodProperty& property);
|
||||
virtual bool Marshalling(Parcel &parcel) const override;
|
||||
static InputMethodProperty *Unmarshalling(Parcel &parcel);
|
||||
};
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace MiscServices {
|
||||
InputMethodSetting();
|
||||
~InputMethodSetting();
|
||||
InputMethodSetting(const InputMethodSetting& inputMethodSetting);
|
||||
InputMethodSetting& operator = (const InputMethodSetting& inputMethodSetting);
|
||||
InputMethodSetting& operator =(const InputMethodSetting& inputMethodSetting);
|
||||
|
||||
void SetValue(const std::u16string& key, const std::u16string& value);
|
||||
std::u16string GetValue(const std::u16string& key) const;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace MiscServices {
|
||||
KeyboardType();
|
||||
KeyboardType(const KeyboardType& type);
|
||||
~KeyboardType();
|
||||
KeyboardType& operator = (const KeyboardType& type);
|
||||
KeyboardType& operator =(const KeyboardType& type);
|
||||
virtual bool Marshalling(Parcel &parcel) const override;
|
||||
static KeyboardType *Unmarshalling(Parcel &parcel);
|
||||
void setId(int32_t typeId);
|
||||
|
||||
@@ -27,11 +27,11 @@ namespace MiscServices {
|
||||
MessageParcel *msgContent_ = nullptr; // message content
|
||||
Message(int32_t msgId, MessageParcel *msgContent);
|
||||
explicit Message(const Message& msg);
|
||||
Message& operator = (const Message& msg);
|
||||
Message& operator =(const Message& msg);
|
||||
~Message();
|
||||
private:
|
||||
Message(const Message&&);
|
||||
Message& operator = (const Message&&);
|
||||
Message& operator =(const Message&&);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,12 +87,12 @@ class MessageHandler {
|
||||
private:
|
||||
std::mutex mMutex; // a mutex to guard message queue
|
||||
std::condition_variable mCV; // condition variable to work with mMutex
|
||||
std::queue<Message*> mQueue ; // Message queue, guarded by mMutex;
|
||||
std::queue<Message*> mQueue; // Message queue, guarded by mMutex;
|
||||
|
||||
MessageHandler(const MessageHandler&);
|
||||
MessageHandler& operator = (const MessageHandler&);
|
||||
MessageHandler& operator =(const MessageHandler&);
|
||||
MessageHandler(const MessageHandler&&);
|
||||
MessageHandler& operator = (const MessageHandler&&);
|
||||
MessageHandler& operator =(const MessageHandler&&);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ namespace MiscServices {
|
||||
DEFAULT_IME = 0, // index for default input method service
|
||||
SECURITY_IME = 1, // index for security input method service
|
||||
MAX_IME = 2, // the maximum count of ims started for a user
|
||||
MIN_IME = 2,
|
||||
};
|
||||
|
||||
public:
|
||||
@@ -148,9 +149,9 @@ namespace MiscServices {
|
||||
sptr<InputMethodAbility> inputMethodAbility_;
|
||||
|
||||
PerUserSession(const PerUserSession&);
|
||||
PerUserSession& operator = (const PerUserSession&);
|
||||
PerUserSession& operator =(const PerUserSession&);
|
||||
PerUserSession(const PerUserSession&&);
|
||||
PerUserSession& operator = (const PerUserSession&&);
|
||||
PerUserSession& operator =(const PerUserSession&&);
|
||||
int IncreaseOrResetImeError(bool resetFlag, int imeIndex);
|
||||
KeyboardType *GetKeyboardType(int imeIndex, int typeIndex);
|
||||
void ResetCurrentKeyboardType(int imeIndex);
|
||||
|
||||
@@ -60,9 +60,9 @@ namespace MiscServices {
|
||||
InputMethodSetting inputMethodSetting; // the object to manage the setting data for this user
|
||||
|
||||
PerUserSetting(const PerUserSetting&);
|
||||
PerUserSetting& operator = (const PerUserSetting&);
|
||||
PerUserSetting& operator =(const PerUserSetting&);
|
||||
PerUserSetting(const PerUserSetting&&);
|
||||
PerUserSetting& operator = (const PerUserSetting&&);
|
||||
PerUserSetting& operator =(const PerUserSetting&&);
|
||||
void InitInputMethodSetting();
|
||||
void ResetCurrentInputMethod();
|
||||
std::u16string GetKeyboardTypeLanguage(const InputMethodProperty *property, int32_t hashCode);
|
||||
|
||||
@@ -56,9 +56,9 @@ namespace MiscServices {
|
||||
Platform();
|
||||
~Platform();
|
||||
Platform(const Platform&);
|
||||
Platform& operator = (const Platform&);
|
||||
Platform& operator =(const Platform&);
|
||||
Platform(const Platform&&);
|
||||
Platform& operator = (const Platform&&);
|
||||
Platform& operator =(const Platform&&);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user