1c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// 2c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// Copyright (C) 2012 The Android Open Source Project 3c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// 4c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// Licensed under the Apache License, Version 2.0 (the "License"); 5c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// you may not use this file except in compliance with the License. 6c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// You may obtain a copy of the License at 7c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// 8c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// http://www.apache.org/licenses/LICENSE-2.0 9c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// 10c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// Unless required by applicable law or agreed to in writing, software 11c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// distributed under the License is distributed on an "AS IS" BASIS, 12c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// See the License for the specific language governing permissions and 14c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// limitations under the License. 15c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// 165de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood 17c54afe521739065a5d77e7c049acdb5e603f0592Ben Chan#ifndef SHILL_CELLULAR_CELLULAR_ERROR_H_ 18c54afe521739065a5d77e7c049acdb5e603f0592Ben Chan#define SHILL_CELLULAR_CELLULAR_ERROR_H_ 195de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood 2003e6719bae1e0903d94853b896673a033196bcf5Alex Vakulenko#include <brillo/errors/error.h> 215de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood 225de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood#include "shill/error.h" 235de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood 245de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbroodnamespace shill { 255de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood 265de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbroodclass CellularError { 275de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood public: 2803e6719bae1e0903d94853b896673a033196bcf5Alex Vakulenko static void FromChromeosDBusError(brillo::Error* dbus_error, 295631be41b95234d3e798906a22da0c08ece67d83Peter Qiu Error* error); 305de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood 3103e6719bae1e0903d94853b896673a033196bcf5Alex Vakulenko static void FromMM1ChromeosDBusError(brillo::Error* dbus_error, 325631be41b95234d3e798906a22da0c08ece67d83Peter Qiu Error* error); 33763df8647ed22caf6a160cedc3bb6f915a3a53dcArman Uguray 345de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood private: 355de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood DISALLOW_COPY_AND_ASSIGN(CellularError); 365de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood}; 375de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood 385de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood} // namespace shill 395de44ab664b7cbb7619e31431e346ec8309548a6Eric Shienbrood 40c54afe521739065a5d77e7c049acdb5e603f0592Ben Chan#endif // SHILL_CELLULAR_CELLULAR_ERROR_H_ 41