aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp
blob: 1e55dc768caeb595d5777b50c50ef39108c4c3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//===========================================
//  Lumina-DE source code
//  Copyright (c) 2015, Ken Moore
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
#include "BaseAnimGroup.h"

//Include all the known subclasses here, then add a unique ID for it to the functions at the bottom
#include "SampleAnimation.h"

//==============================
//     PLUGIN LOADING/LISTING
//==============================
BaseAnimGroup* BaseAnimGroup::NewAnimation(QString type, QWidget *parent, QSettings *set){
  //This is where we place all the known plugin ID's, and load the associated subclass
  if(type == "sample"){
    return (new SampleAnimation(parent, set));
  }else{
    //Unknown screensaver, return a blank animation group
    return (new BaseAnimGroup(parent, set));
  }
}
	
QStringList BaseAnimGroup::KnownAnimations(){
  return (QStringList() << "sample");
}
bgstack15