api_fwd.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 2020 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef FIRESTORE_CORE_SRC_API_API_FWD_H_
  17. #define FIRESTORE_CORE_SRC_API_API_FWD_H_
  18. #include <memory>
  19. namespace firebase {
  20. namespace firestore {
  21. namespace core {
  22. template <typename T>
  23. class EventListener;
  24. } // namespace core
  25. namespace api {
  26. class CollectionReference;
  27. class DocumentChange;
  28. class DocumentReference;
  29. class DocumentSnapshot;
  30. class Firestore;
  31. class ListenerRegistration;
  32. class Query;
  33. class QuerySnapshot;
  34. class Settings;
  35. class SnapshotMetadata;
  36. class WriteBatch;
  37. enum class Source;
  38. using DocumentSnapshotListener =
  39. std::unique_ptr<core::EventListener<DocumentSnapshot>>;
  40. using QuerySnapshotListener =
  41. std::unique_ptr<core::EventListener<QuerySnapshot>>;
  42. } // namespace api
  43. } // namespace firestore
  44. } // namespace firebase
  45. #endif // FIRESTORE_CORE_SRC_API_API_FWD_H_